numValue method Null safety

num numValue()

Returns this value as a num if the value is numeric, otherwise returns 0.

Implementation

num numValue() => 0;