ReownAppKitModalTextStylesPatterns extension

Adds pattern-matching-related methods to ReownAppKitModalTextStyles.

on

Methods

map<TResult extends Object?>(TResult $default(_ReownAppKitModalTextStyles value)) → TResult

Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ReownAppKitModalTextStyles value)?) → TResult?

Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ReownAppKitModalTextStyles value)?, {required TResult orElse()}) → TResult

Available on ReownAppKitModalTextStyles, provided by the ReownAppKitModalTextStylesPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse 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

A switch-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 of when that fallback to returning null