RestorableRouteFutureRaiiExt<T> extension
Extension for managing RestorableRouteFuture lifecycle.
Example:
final routeFuture = RestorableRouteFuture<String>(
onPresent: (navigator, arguments) => navigator.pushNamed('/route'),
).withLifecycle(this, debugLabel: 'RouteFuture');
- on
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableRouteFuture< T> -
Available on RestorableRouteFuture<
Attaches this restorable route future to a RaiiLifecycleAware object for automatic disposal.T> , provided by the RestorableRouteFutureRaiiExt extension