asNumOr method

num? asNumOr([
  1. num? defaultValue
])

If object is num then return it otherwise default value

Implementation

num? asNumOr([num? defaultValue]) {
  return _getValueOr<num>(defaultValue);
}