valueOr method Null safety

dynamic valueOr(
  1. dynamic defaultValue
)

Returns value, or defaultValue if this parameter wasn't passed.

Implementation

dynamic valueOr(defaultValue) => value;