AppAccessibilityPatterns extension
Adds pattern-matching-related methods to AppAccessibility.
Methods
-
map<
TResult extends Object?> (TResult $default(_AppAccessibility value)) → TResult -
Available on AppAccessibility, provided by the AppAccessibilityPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AppAccessibility value)?) → TResult? -
Available on AppAccessibility, provided by the AppAccessibilityPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_AppAccessibility value)?, {required TResult orElse()}) → TResult -
Available on AppAccessibility, provided by the AppAccessibilityPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String host, bool isDeployed, bool isSuspended)?, {required TResult orElse()}) → TResult -
Available on AppAccessibility, provided by the AppAccessibilityPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String host, bool isDeployed, bool isSuspended)) → TResult -
Available on AppAccessibility, provided by the AppAccessibilityPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String host, bool isDeployed, bool isSuspended)?) → TResult? -
Available on AppAccessibility, provided by the AppAccessibilityPatterns extension
A variant ofwhenthat fallback to returningnull