initializeFormattingFromFile static method

Future<void> initializeFormattingFromFile(
  1. String locale,
  2. String path
)

This should be called for at least one locale before any date formatting methods are called. It sets up the lookup for date symbols using path. The path parameter should end with a directory separator appropriate for the platform.

en_US is always loaded by default.

Implementation

static Future<void> initializeFormattingFromFile(
  String locale,
  String path,
) async {
  await loader.initializeFormattingFromFile(locale, path);
}