checkForNull<T> static method
T
checkForNull<T>(
- dynamic value,
- T defValue
Implementation
static T checkForNull<T>(dynamic value, T defValue) {
return value ?? defValue;
}