BundleEntity.fromBundle constructor
BundleEntity.fromBundle({
- required Bundle bundle,
Implementation
factory BundleEntity.fromBundle({required Bundle bundle}) {
return BundleEntity(
projectId: bundle.projectId,
translationVersion: bundle.translationVersion,
appVersion: bundle.appVersion,
translations: {
for (final e in bundle.languageBundles) e.locale: e.translations
},
);
}