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
Returns whether the prop read within accessProp is specified.
getPropKey(void accessProp(T)) String
Returns the key used to store the prop read within accessProp.
getRequiredProp<V>(V accessProp(T spiedView), {required V orElse()}) → V
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?
Returns the value of the prop read within accessProp if it's specified, or null otherwise.