discontinuedPackage dart_console2 has been discontinued and replaced by dart_console.

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('⁰¹²³⁴⁵⁶⁷⁸⁹');