LocaleAddon class
An Addon for changing the active Locale via Localizations.
- Inheritance
-
- Object
- FieldsComposable<
Locale> - Addon<
Locale> - LocaleAddon
- Mixed-in types
Constructors
-
LocaleAddon(List<
Locale> locales, [List<LocalizationsDelegate> delegates = const []])
Properties
-
delegates
→ List<
LocalizationsDelegate> -
final
- description → String?
-
The description of the composable group.
finalinherited
-
field
→ Field<
Locale> -
no setteroverride
-
fields
→ List<
Field> -
A list of
Fields that belong to this composable group.no setterinherited - groupName → String
-
The name of the query group param.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue ↔ Locale
-
The initial value of the composable group.
latefinalinherited
- isNullable → bool
-
Whether this composable group is nullable.
no setterinherited
-
locales
→ List<
Locale> -
final
- name → String
-
The display name of the composable group.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
BuildContext context, Widget child, Locale setting) → Widget -
Applies this to
childwhich is usually the story using thesettingthat is obtained from valueFromQueryGroup.override -
build(
BuildContext context, Widget child) → Widget -
inherited
-
buildFields(
BuildContext context) → Widget -
Converts the fields into a Widget that will be rendered in the
settings side panel.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paramOf<
TField> (String name, TField value) → String -
Encodes the value of the Field with
nameto a query parameter using the Field.toParam.inherited -
slugify(
String name) → String -
Converts the
nameto a slugified version that can be used in query parameters.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
valueFromQueryGroup(
QueryGroup? group) → Locale -
Converts a query group to a value of type
T.groupcan be null if there is no query parameter for this group.inherited -
valueOf<
TField> (String name, QueryGroup group) → TField -
Decodes the value of the Field with
namefrom the querygroupusing the Field.toValue.inherited -
valueToQueryGroup(
Locale value) → QueryGroup -
Converts a value of type
Tto a query group.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited