From 09db85e1e58c6eabe42607c8a23c772969f75a49 Mon Sep 17 00:00:00 2001 From: RZD Date: Wed, 11 Mar 2020 16:40:38 +0800 Subject: [PATCH] Update index.md --- tutorials/international/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/international/index.md b/tutorials/international/index.md index 92107c5..74169f8 100644 --- a/tutorials/international/index.md +++ b/tutorials/international/index.md @@ -186,7 +186,7 @@ class DemoLocalizations { static Future load(Locale locale) { final String name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString(); final String localeName = Intl.canonicalizedLocale(name); - return initializeMessages(localeName).then((Null _) { + return initializeMessages(localeName).then((_) { Intl.defaultLocale = localeName; return new DemoLocalizations(); });