localizationsDelegates property
The delegates for this app's Localizations widget.
The delegates collectively define all of the localized resources for this application's Localizations widget.
Implementation
Iterable<LocalizationsDelegate<Object?>> get localizationsDelegates {
// Combine the Localizations for Widgets with the ones contributed
// by the localizationsDelegates parameter, if any. Only the first delegate
// of a particular LocalizationsDelegate.type is loaded so the
// localizationsDelegate parameter can be used to override
// WidgetsLocalizations.delegate.
return <LocalizationsDelegate<Object?>>[
if (_localizationsDelegates != null) ..._localizationsDelegates!,
DefaultWidgetsLocalizations.delegate,
];
}