通常我这样定义supportedLocales:
supportedLocales: [
const Locale.fromSubtags(languageCode: 'en'),
const Locale.fromSubtags(languageCode: 'fr'),
const Locale.fromSubtags(languageCode: 'ja'),
const Locale.fromSubtags(languageCode: 'de'),
const Locale.fromSubtags(languageCode: 'it'),
const Locale.fromSubtags(languageCode: 'es'),
],
但是如何从我已经设置为单例的列表中声明它:
List<String> listlang = ['en', 'fr', 'ja', 'de', 'it', 'es'];
问候迈克