toValue method

  1. @override
Object toValue()
override

Converts this item to a native Dart value.

Implementation

@override
Object toValue() => scale == 0 && unscaledValue.isValidInt
    ? unscaledValue.toInt()
    : toDouble();