ReownAppKitModalTextStylesPatterns extension
Adds pattern-matching-related methods to ReownAppKitModalTextStyles.
Methods
-
map<
TResult extends Object?> (TResult $default(_ReownAppKitModalTextStyles value)) → TResult -
Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ReownAppKitModalTextStyles value)?) → TResult? -
Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ReownAppKitModalTextStyles value)?, {required TResult orElse()}) → TResult -
Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String fontFamily, TextStyle title400, TextStyle title500, TextStyle title600, TextStyle large400, TextStyle large500, TextStyle large600, TextStyle paragraph400, TextStyle paragraph500, TextStyle paragraph600, TextStyle small400, TextStyle small500, TextStyle small600, TextStyle tiny400, TextStyle tiny500, TextStyle tiny600, TextStyle micro600, TextStyle micro700)?, {required TResult orElse()}) → TResult -
Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(String fontFamily, TextStyle title400, TextStyle title500, TextStyle title600, TextStyle large400, TextStyle large500, TextStyle large600, TextStyle paragraph400, TextStyle paragraph500, TextStyle paragraph600, TextStyle small400, TextStyle small500, TextStyle small600, TextStyle tiny400, TextStyle tiny500, TextStyle tiny600, TextStyle micro600, TextStyle micro700)) → TResult -
Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String fontFamily, TextStyle title400, TextStyle title500, TextStyle title600, TextStyle large400, TextStyle large500, TextStyle large600, TextStyle paragraph400, TextStyle paragraph500, TextStyle paragraph600, TextStyle small400, TextStyle small500, TextStyle small600, TextStyle tiny400, TextStyle tiny500, TextStyle tiny600, TextStyle micro600, TextStyle micro700)?) → TResult? -
Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension
A variant ofwhen
that fallback to returningnull