numValue property

num? get numValue

Returns num, if the underlying value is numeric, be it int uint, or float (direct or indirect).

Otherwise returns null.

Implementation

num? get numValue => doubleValue ?? intValue;