load method Null safety

Future<WidgetsLocalizations> load(
  1. Locale locale

Creates an object that provides US English resource values for the lowest levels of the widgets library.

The locale parameter is ignored.

This method is typically used to create a LocalizationsDelegate. The WidgetsApp does so by default.


static Future<WidgetsLocalizations> load(Locale locale) {
  return SynchronousFuture<WidgetsLocalizations>(const DefaultWidgetsLocalizations());