delegates constant

List<LocalizationsDelegate> const delegates = const <LocalizationsDelegate>[GlobalCupertinoLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate]

A value for MaterialApp.localizationsDelegates that's typically used by internationalized apps.

Sample code

To include the localizations provided by this class and by GlobalWidgetsLocalizations in a MaterialApp, use GlobalMaterialLocalizations.delegates as the value of MaterialApp.localizationsDelegates, and specify the locales your app supports with MaterialApp.supportedLocales:

new MaterialApp(
  localizationsDelegates: GlobalMaterialLocalizations.delegates,
  supportedLocales: [
    const Locale('en', 'US'), // English
    const Locale('he', 'IL'), // Hebrew
  ],
  // ...
)

Implementation

static const List<LocalizationsDelegate<dynamic>> delegates = <LocalizationsDelegate<dynamic>>[
  GlobalCupertinoLocalizations.delegate,
  GlobalMaterialLocalizations.delegate,
  GlobalWidgetsLocalizations.delegate,
]