toNegativeAscii method

String toNegativeAscii()

Converts the negative Unicode representation of this String to ASCII.

Example:

'1'.toNegativeAscii() == '1'
'−5'.toNegativeAscii() == '-5'

Implementation

String toNegativeAscii() => replaceFirst(NumExtension.minusSign, '-');