or method
- @useResult
- T alt
Returns the value if it's not a null
, otherwise returns the
alternative alt
.
Implementation
@useResult
T or(T alt) => this != null ? this as T : alt;
Returns the value if it's not a null
, otherwise returns the
alternative alt
.
@useResult
T or(T alt) => this != null ? this as T : alt;