ExtFalsy<T> extension
Extension that adds falsy/truthy helpers to nullable values.
- on
-
- T?
Properties
Methods
-
dependsOn<
R> (R? value) → T? -
Available on T?, provided by the ExtFalsy extension
Returns this value only ifvalueis truthy. -
onlyIf(
bool? condition) → T? -
Available on T?, provided by the ExtFalsy extension
Returns this value only ifconditionistrue. -
or(
T fallback) → T -
Available on T?, provided by the ExtFalsy extension
Returns this value if it is truthy, otherwise returnsfallback.