PreviewLocalizationsData class base

A collection of localization objects and callbacks for use in widget previews.

Constructors

PreviewLocalizationsData.new({Locale? locale, List<Locale> supportedLocales = const <Locale>[Locale('en', 'US')], Iterable<LocalizationsDelegate<Object?>>? localizationsDelegates, LocaleListResolutionCallback? localeListResolutionCallback, LocaleResolutionCallback? localeResolutionCallback})
Creates a collection of localization objects and callbacks for use in widget previews.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
locale Locale?
The initial locale for this app's Localizations widget is based on this value.
final
localeListResolutionCallback LocaleListResolutionCallback?
This callback is responsible for choosing the app's locale when the app is started, and when the user changes the device's locale.
final
localeResolutionCallback LocaleResolutionCallback?
This callback is responsible for choosing the app's locale when the app is started, and when the user changes the device's locale.
final
localizationsDelegates Iterable<LocalizationsDelegate<Object?>>?
The delegates for this preview's Localizations widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedLocales List<Locale>
The list of locales that this app has been localized for.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited