superscript method

String superscript()

Given a string of numerals, returns their superscripted form.

If the string contains non-numeral characters, they are returned unchanged.

Implementation

String superscript() => _convertNumerals('⁰¹²³⁴⁵⁶⁷⁸⁹');