delegate constant
A LocalizationsDelegate that uses _DefaultLocalizations.load
to create an instance of this class.
MaterialApp automatically adds this value to MaterialApp.localizationsDelegates.
Widget build(BuildContext context) {
return MaterialApp(
localizationsDelegates: [
SfGlobalLocalizations.delegate
],
supportedLocales: const [
Locale('en'),
Locale('fr'),
],
locale: const Locale('fr')
);
}
Implementation
static const LocalizationsDelegate<SfLocalizations> delegate =
_SfLocalizationDelegates();