checkForNull<T> static method

T checkForNull<T>(
  1. dynamic value,
  2. T defValue
)

Implementation

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