AutomaticKeepAlive constructor Null safety

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

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

Implementation

const AutomaticKeepAlive({
  Key? key,
  this.child,
}) : super(key: key);