delegates constant
A value for CupertinoApp.localizationsDelegates that's typically used by internationalized apps.
Sample code
To include the localizations provided by this class and by GlobalWidgetsLocalizations in a CupertinoApp, use GlobalCupertinoLocalizations.delegates as the value of CupertinoApp.localizationsDelegates, and specify the locales your app supports with CupertinoApp.supportedLocales:
const CupertinoApp(
localizationsDelegates: GlobalCupertinoLocalizations.delegates,
supportedLocales: <Locale>[
Locale('en', 'US'), // English
Locale('he', 'IL'), // Hebrew
],
// ...
)
Implementation
static const List<LocalizationsDelegate<dynamic>> delegates = <LocalizationsDelegate<dynamic>>[
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];