AuthField<T> class abstract

An abstract class representing a field in a Flutter form.

T represents the type of value stored in the field.

Implementers

Constructors

AuthField({required String name, required T value, dynamic onValueChanged(T)?, Widget? title, List<String? Function(T?)> validators = const []})
Constructs an AuthField object.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the field.
final
onValueChanged → (dynamic Function(T)?)
A callback function triggered when the value of the field changes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → Widget?
The title widget of the field.
final
validators ↔ List<String? Function(T?)>
A list of validation functions for the field.
getter/setter pair
value ↔ T
The initial value of the field.
getter/setter pair

Methods

build(BuildContext context, Function onValueChanged) → Widget
Builds the widget representing the field.
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