format method

String format(
  1. TValue input
)

Formats input according to the pattern and locale of this format.

Implementation

String format(TValue input) =>
    _formatWithLocale(input, locale ?? Intl.getCurrentLocale());