Localizations constructor

Localizations({Key key, @required Locale locale, @required List<LocalizationsDelegate> delegates, Widget child })

Create a widget from which localizations (like translated strings) can be obtained.

Implementation

Localizations({
  Key key,
  @required this.locale,
  @required this.delegates,
  this.child,
}) : assert(locale != null),
     assert(delegates != null),
     assert(delegates.any((LocalizationsDelegate<dynamic> delegate) => delegate is LocalizationsDelegate<WidgetsLocalizations>)),
     super(key: key);