delegates abstract method

List<LocalizationsDelegate> delegates([
  1. List<LocalizationsDelegate> delegates = const []
])

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 [],
]);