LifeCycle constructor
const
LifeCycle({
- required Widget child,
- VoidCallback? onCreate,
- VoidCallback? onStart,
- VoidCallback? onResume,
- VoidCallback? onPause,
- VoidCallback? onDestroy,
- double visibilityThreshold = 1.0,
- String? debugLabel,
- Key? key,
Implementation
const LifeCycle({
required this.child,
this.onCreate,
this.onStart,
this.onResume,
this.onPause,
this.onDestroy,
this.visibilityThreshold = 1.0,
this.debugLabel,
Key? key,
}) : assert(visibilityThreshold >= 0.0 && visibilityThreshold <= 1.0,
'visibilityThreshold must be between 0.0 and 1.0'),
super(key: key);