AutomaticKeepAlive constructor Null safety

const AutomaticKeepAlive(
  1. {Key? key,
  2. required Widget child}
)

Creates a widget that listens to KeepAliveNotifications and maintains a KeepAlive widget appropriately.

Implementation

const AutomaticKeepAlive({
  super.key,
  required this.child,
});