TExtensions<T> extension
- on
-
- T?
Properties
- isNotNull → bool
-
Available on T?, provided by the TExtensions extension
Checks if the value is not null.no setter - isNull → bool
-
Available on T?, provided by the TExtensions extension
Checks if the value is null.no setter
Methods
-
also(
void action(T?)) → T? -
Available on T?, provided by the TExtensions extension
Executes the givenactionif the value is null. -
equals(
T? value) → bool -
Available on T?, provided by the TExtensions extension
Checks for equality between the currentTand the methodvalue -
getOrThrow(
[String? message]) → T -
Available on T?, provided by the TExtensions extension
Returns this value if it is not null, otherwise throws aJetException. -
instanceOf<
E> () → bool -
Available on T?, provided by the TExtensions extension
Checks if the giventhisis an instance ofEtype. -
isBlank(
) → bool -
Available on T?, provided by the TExtensions extension
Checks if data is blank (empty or only contains whitespace). -
isNullOrBlank(
) → bool -
Available on T?, provided by the TExtensions extension
Checks if data is null or blank (empty or only contains whitespace). -
let<
R> (R action(T)) → R? -
Available on T?, provided by the TExtensions extension
Executes the givenactionif the value is not null. -
notEquals(
T? value) → bool -
Available on T?, provided by the TExtensions extension
Checks for in-equality between the currentTand the methodvalue -
orElse(
T? orElse) → T? -
Available on T?, provided by the TExtensions extension
Returns the value if it's not null, otherwise returnsorElse.