FormMixin class mixin

Constructors

FormMixin()

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

controllerOf(String name) TextEditingController
editArea({required String name, Key? key, String? initialValue, String? label, String? hint, int? minLength, int maxLength = 256, bool allowEmpty = true, OnValue<String>? onSubmitted, Widget? prefixIcon, String? helperText, String? errorText, Widget? suffixIcon, Color? cursorColor, TextValidator? validator, List<TextInputFormatter>? inputFormatters, bool autofocus = false, int? minLines = 3, int? maxLines = 6, bool readonly = false, InputDecoration? decoration, InputBorder? border, void onChanged(String)?, void onTapOutside(PointerDownEvent)?}) TextFormField
EditDouble({required String name, Key? key, double? initialValue, double? minValue, double? maxValue, bool signed = true, bool allowEmpty = true, void onSubmitted(String)?, void onChanged(String)?, String? label, String? hint, Widget? prefixIcon, String? helperText, String? errorText, int? maxLength, bool clear = false, Widget? suffixIcon, FocusNode? focusNode, Color? cursorColor, TextInputAction? textInputAction = TextInputAction.next, InputDecoration? decoration, InputBorder? border}) Widget
EditInt({required String name, Key? key, int? initialValue, int? minValue, int? maxValue, bool signed = true, bool allowEmpty = true, void onSubmitted(String)?, void onChanged(String)?, String? label, String? hint, Widget? prefixIcon, String? helperText, String? errorText, int? maxLength, bool clear = false, Widget? suffixIcon, Color? cursorColor, TextInputAction? textInputAction = TextInputAction.next, InputDecoration? decoration, InputBorder? border}) Widget
editPassword({Key? key, required String name, required VoidCallback onUpdateState, String? initialValue, int minLength = 1, int maxLength = 128, String? label = "密码", String? errorText, String? hint, bool allowEmpty = false, TextValidator? validator, OnValue<String>? onChanged, OnValue<String>? onSubmitted, List<TextInputFormatter>? inputFormatters, Color? cursorColor, InputBorder? border, Widget? prefixIcon = const Icon(Icons.lock), TextInputAction? textInputAction = TextInputAction.done}) Widget
editText({Key? key, required String name, String? initialValue, String? label, String? hint, int? minLength, int maxLength = 256, bool allowEmpty = true, ValueChanged<String>? onSubmitted, Widget? prefixIcon, String? helperText, String? errorText, bool clear = false, Widget? suffixIcon, Color? cursorColor, TextValidator? validator, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType = TextInputType.text, TextInputAction? textInputAction = TextInputAction.next, TextAlign textAlign = TextAlign.start, bool autofocus = false, int? maxLines, int? minLines, bool readonly = false, InputDecoration? decoration, InputBorder? border, void onChanged(String)?, void onTapOutside(PointerDownEvent)?}) TextFormField
focusNodeOf(String name) FocusNode
form(Widget child, {AutovalidateMode? autovalidateMode, VoidCallback? onChanged}) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
radioGroupRow<T>({required String name, required List<LabelValue<T>> items, T? initValue, required VoidCallback onUpdateState, double spacing = 0.0, MainAxisSize mainAxisSize = .max, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceAround, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center}) RadioGroup<T>
textOf(String name) String
toString() String
A string representation of this object.
inherited
validate() bool
valueOf<T extends Object>(String name) → T?

Operators

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