VoDashboardStatePatterns extension
Adds pattern-matching-related methods to VoDashboardState.
Methods
-
map<
TResult extends Object?> (TResult $default(_VoDashboardState value)) → TResult -
Available on VoDashboardState, provided by the VoDashboardStatePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_VoDashboardState value)?) → TResult? -
Available on VoDashboardState, provided by the VoDashboardStatePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_VoDashboardState value)?, {required TResult orElse()}) → TResult -
Available on VoDashboardState, provided by the VoDashboardStatePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(VoDashboardPane? currentPane, List< VoDashboardPane> dockPanes, List<VoDashboardPane> drawerPanes, List<VoDashboardPane> endDrawerPanes, List<VoDashboardPane> registry, List<VoPage> flowPages, bool canPopShell, bool isInitialized)?, {required TResult orElse()}) → TResult -
Available on VoDashboardState, provided by the VoDashboardStatePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(VoDashboardPane? currentPane, List< VoDashboardPane> dockPanes, List<VoDashboardPane> drawerPanes, List<VoDashboardPane> endDrawerPanes, List<VoDashboardPane> registry, List<VoPage> flowPages, bool canPopShell, bool isInitialized)) → TResult -
Available on VoDashboardState, provided by the VoDashboardStatePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(VoDashboardPane? currentPane, List< VoDashboardPane> dockPanes, List<VoDashboardPane> drawerPanes, List<VoDashboardPane> endDrawerPanes, List<VoDashboardPane> registry, List<VoPage> flowPages, bool canPopShell, bool isInitialized)?) → TResult? -
Available on VoDashboardState, provided by the VoDashboardStatePatterns extension
A variant ofwhenthat fallback to returningnull