build property

Gets a new translation instance. LocaleSettings has no effect here. Suitable for dependency injection and unit tests.

Usage: final t = AppLocale.en.build(); // build String a = t.my.path; // access

Implementation

@override
TranslationBuilder<FakeAppLocale, FakeTranslations> get build {
  return ({overrides, cardinalResolver, ordinalResolver}) => FakeTranslations(
        FakeAppLocale(
          languageCode: languageCode,
          scriptCode: scriptCode,
          countryCode: countryCode,
        ),
        overrides: overrides,
        cardinalResolver: cardinalResolver,
        ordinalResolver: ordinalResolver,
      );
}