TextFieldManager class
This package makes it easier to manage the state of textfields.
Author Masahide Mori
First edition creation date 2022-11-05 23:49:27
Constructors
- TextFieldManager()
- Constructor
Properties
Methods
-
containsEmptyCtrl(
) → bool - (en) Returns true if there is an empty string in the content of the controller under management, false if it does not exist.
-
dispose(
) → void - (en)Dispose all managed objects. Usually called inside the dispose of the widget.
-
fromDict(
Map< String, dynamic> src) → void - (en)Restore this object from the dictionary. If data with the same key already exists, it will be overwritten.
-
getAllCtrl(
) → Map< String, TextEditingController> - (en)Returns a map of managed controllers. Do not normally call this directly.
-
getALLFocus(
) → Map< String, FocusNode> - (en)Returns a map of managed FocusNodes. Do not normally call this directly.
-
getCtrl(
String name, {String? initialText, bool isAlwaysInitialize = false}) → TextEditingController - (en)If the controller with the specified name has been created, return it, otherwise return newly created one.
-
getFocus(
String name) → FocusNode - (en)If the FocusNode with the specified name has been created, return it, otherwise return newly created one.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDict(
{List< String> ? nonSaveKeys}) → Map<String, dynamic> - (en)Convert the object to a dictionary. Be careful how you handle user data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited