ThemedOrm class
ThemedOrm is a helper component to handle Layrz Translations errors.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
Static Methods
-
getErrors(
{required String key, BuildContext? context}) → List< String> -
getError
returns a list of errors translated usingLayrzAppLocalizations
. -
hasContainerErrors(
{required String key}) → bool -
hasContainerErrors works similar as hasErrors but it returns true any of the errors starts with
key
-
hasErrors(
{required String key}) → bool -
hasErrors returns true if the
key
has errors. -
setErrors(
{required Map< String, dynamic> errors}) → void - setErrors sets the errors to be used by the ThemedOrm.
-
setI18n(
{required LayrzAppLocalizations i18n}) → void -
setI18n sets the i18n to be used by the ThemedOrm, the
i18n
argument should beLayrzAppLocalizations
instance.