initializeFormatting static method

Future<void> initializeFormatting()

This should be called before using any other locale than the default, en_US one. It sets up the lookup for date symbols. The data for all locales is directly available.

en_US is always loaded by default.

Implementation

static Future<void> initializeFormatting() async {
  await loader.initializeFormatting();
}