FormValue class
Create a query to retrieve form controllers.
Use with freezed
, etc.
static const form = _$(class name)FormQuery()
to get the query.
If autoDisposeWhenUnreferenced is set to true
, it will automatically dispose of FormValue when it is no longer referenced by any widget.
フォームコントローラーを取得するためのクエリーを作成します。
freezed
などと共に利用してください。
static const form = _$(クラス名)FormQuery()
でクエリーを取得します。
autoDisposeWhenUnreferencedをtrue
にした場合、FormValueがどのウィジェットにも参照されなくなったときに自動的に破棄します。
@freezed
@formValue
@immutable
class LoginValue with _$LoginValuee {
const factory LoginValue({
@Default("") String email,
@Default("") String password,
}) = _LoginValue;
const LoginValue._();
factory LoginValue.fromJson(Map<String, Object?> json) => _$LoginValueFromJson(json);
static const form = _$LoginValueFormQuery();
}
Constructors
Properties
- autoDisposeWhenUnreferenced → bool
-
Returns
true
if ControllerGroup should be automatically destroyed when it is no longer referenced by any widget.final - 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