UiPropsSelfTypedExtension<T extends UiProps> extension
Extension with methods whose typings rely on the current type T.
- on
-
- T
Methods
-
containsProp(
void accessProp(T spiedView)) → bool -
Available on T, provided by the UiPropsSelfTypedExtension extension
Returns whether the prop read withinaccessPropis specified. -
getPropKey(
void accessProp(T spiedView)) → String -
Available on T, provided by the UiPropsSelfTypedExtension extension
Returns the key used to store the prop read withinaccessProp. -
getRequiredProp<
V> (V accessProp(T spiedView), {required V orElse()}) → V -
Available on T, provided by the UiPropsSelfTypedExtension extension
Returns the value of the prop read withinaccessPropif it's specified, or the result oforElseotherwise. -
getRequiredPropOrNull<
V> (V accessProp(T spiedView)) → V? -
Available on T, provided by the UiPropsSelfTypedExtension extension
Returns the value of the prop read withinaccessPropif it's specified, or null otherwise.