SubAppLifecycleState constructor
SubAppLifecycleState({
- required SubValueBuild<
AppLifecycleState?> builder, - ValueChanged<
AppLifecycleState?> ? listener, - bool initialize = false,
Returns the current AppLifecycleState value and rebuilds the widget when it changes.
Implementation
SubAppLifecycleState({
required SubValueBuild<AppLifecycleState?> builder,
super.listener,
super.initialize,
}) : super(
initialData: WidgetsBinding.instance.lifecycleState,
builder: (context, notifier) => builder(context, notifier.value),
);