buildWithOverrides method
T
buildWithOverrides({
- required E locale,
- required FileType fileType,
- required String content,
- PluralResolver? cardinalResolver,
- PluralResolver? ordinalResolver,
Creates a translation instance with overrides stored in content
.
Implementation
T buildWithOverrides({
required E locale,
required FileType fileType,
required String content,
PluralResolver? cardinalResolver,
PluralResolver? ordinalResolver,
}) {
return buildWithOverridesFromMap(
locale: locale,
isFlatMap: false,
map: BaseDecoder.decodeWithFileType(fileType, content),
cardinalResolver: cardinalResolver,
ordinalResolver: ordinalResolver,
);
}