CardFormStylePatterns extension
Adds pattern-matching-related methods to CardFormStyle.
Methods
-
map<
TResult extends Object?> (TResult $default(_CardFormStyleConstructor value)) → TResult -
Available on CardFormStyle, provided by the CardFormStylePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_CardFormStyleConstructor value)?) → TResult? -
Available on CardFormStyle, provided by the CardFormStylePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_CardFormStyleConstructor value)?, {required TResult orElse()}) → TResult -
Available on CardFormStyle, provided by the CardFormStylePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(Color? backgroundColor, int? borderWidth, Color? borderColor, int? borderRadius, Color? cursorColor, Color? textColor, int? fontSize, Color? textErrorColor, Color? placeholderColor)?, {required TResult orElse()}) → TResult -
Available on CardFormStyle, provided by the CardFormStylePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(Color? backgroundColor, int? borderWidth, Color? borderColor, int? borderRadius, Color? cursorColor, Color? textColor, int? fontSize, Color? textErrorColor, Color? placeholderColor)) → TResult -
Available on CardFormStyle, provided by the CardFormStylePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(Color? backgroundColor, int? borderWidth, Color? borderColor, int? borderRadius, Color? cursorColor, Color? textColor, int? fontSize, Color? textErrorColor, Color? placeholderColor)?) → TResult? -
Available on CardFormStyle, provided by the CardFormStylePatterns extension
A variant ofwhen
that fallback to returningnull