orDefault method
T?
orDefault(
- T? def
If this is null - return def,
otherwise this is called and returned value is used.
Implementation
T? orDefault(T? def) => this == null ? def : this?.call();
If this is null - return def,
otherwise this is called and returned value is used.
T? orDefault(T? def) => this == null ? def : this?.call();