CardStylePatterns extension
Adds pattern-matching-related methods to CardStyle.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_CardStyleConstructor value)) → TResult -
Available on CardStyle, provided by the CardStylePatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_CardStyleConstructor value)?) → TResult? -
Available on CardStyle, provided by the CardStylePatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_CardStyleConstructor value)?, {required TResult orElse()}) → TResult -
Available on CardStyle, provided by the CardStylePatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(int? borderWidth, Color? backgroundColor, Color? borderColor, int? borderRadius, Color? cursorColor, Color? textColor, int? fontSize, String? fontFamily, Color? textErrorColor, Color? placeholderColor)?, {required TResult orElse()}) → TResult -
Available on CardStyle, provided by the CardStylePatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(int? borderWidth, Color? backgroundColor, Color? borderColor, int? borderRadius, Color? cursorColor, Color? textColor, int? fontSize, String? fontFamily, Color? textErrorColor, Color? placeholderColor)) → TResult -
Available on CardStyle, provided by the CardStylePatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? borderWidth, Color? backgroundColor, Color? borderColor, int? borderRadius, Color? cursorColor, Color? textColor, int? fontSize, String? fontFamily, Color? textErrorColor, Color? placeholderColor)?) → TResult? -
Available on CardStyle, provided by the CardStylePatterns extension
A variant ofwhenthat fallback to returningnull