removeTrailingZero property

String get removeTrailingZero

Removes trailing zeros from the string representation of the number.

Implementation

String get removeTrailingZero =>
    toString().replaceAll(RegExp(r'([.]*0)(?!.*\d)'), '');