delegates abstract method
Delegate list to be passed to localizationsDelegates
such as MaterialApp.
Additional delegates can be specified in delegates. If not specified, an empty array is passed.
Pass this to localizationsDelegates
such as MaterialApp as shown below.
MaterialAppなどのlocalizationsDelegates
に渡すためのデリゲートリスト。
delegatesに追加のデリゲートを指定可能です。指定しない場合は空の配列が渡されます。
これを下記のようにMaterialAppなどのlocalizationsDelegates
に渡してください。
MaterialApp(
locale: appLocalize.locale,
localizationsDelegates: appLocalize.delegates(),
supportedLocales: appLocalize.supportedLocales(),
localeResolutionCallback: appLocalize.localeResolutionCallback(),
);
Implementation
List<LocalizationsDelegate> delegates([
List<LocalizationsDelegate> delegates = const [],
]);