LexArrayPatterns extension
Adds pattern-matching-related methods to LexArray.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_LexArray value)) → TResult -
Available on LexArray, provided by the LexArrayPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LexArray value)?) → TResult? -
Available on LexArray, provided by the LexArrayPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LexArray value)?, {required TResult orElse()}) → TResult -
Available on LexArray, provided by the LexArrayPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String type, String? description, LexArrayItem items, int? minLength, int? maxLength)?, {required TResult orElse()}) → TResult -
Available on LexArray, provided by the LexArrayPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String type, String? description, LexArrayItem items, int? minLength, int? maxLength)) → TResult -
Available on LexArray, provided by the LexArrayPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String type, String? description, LexArrayItem items, int? minLength, int? maxLength)?) → TResult? -
Available on LexArray, provided by the LexArrayPatterns extension
A variant ofwhenthat fallback to returningnull