asNum method

num asNum([
  1. num? defaultValue
])

If object is num then return it otherwise throw FormatException

Implementation

num asNum([num? defaultValue]) {
  return _getValue<num>(defaultValue);
}