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 within accessProp is specified.
getPropKey(void accessProp(T spiedView)) String

Available on T, provided by the UiPropsSelfTypedExtension extension

Returns the key used to store the prop read within accessProp.
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 within accessProp if it's specified, or the result of orElse otherwise.
getRequiredPropOrNull<V>(V accessProp(T spiedView)) → V?

Available on T, provided by the UiPropsSelfTypedExtension extension

Returns the value of the prop read within accessProp if it's specified, or null otherwise.