FixedExtentScrollControllerRaiiExt extension
Extension for managing FixedExtentScrollController lifecycle.
Example:
class MyWidgetState extends State<MyWidget> with RaiiStateMixin {
late final scrollController = FixedExtentScrollController()
.withLifecycle(this, debugLabel: 'FixedExtentController');
}
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → FixedExtentScrollController -
Available on FixedExtentScrollController, provided by the FixedExtentScrollControllerRaiiExt extension
Attaches this controller to a RaiiLifecycleAware object for automatic disposal.