FormGroupManage class

Constructors

FormGroupManage.create(Map<String, ManageFieldItem> createField)
create manage
factory
FormGroupManage.createList(List<Map<String, ManageFieldItem>> createFieldList)

Properties

hashCode int
The hash code for this object.
no setterinherited
manageList Map<String, FormGroupItem>
get focus and controller info
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addField(Map<String, ManageFieldItem> createField, {bool prefixKeyMode = false}) → void
dynamic add field if create by FormGroupManage.createList, set prefixKeyMode is 'true' can add to prefix mode
addFieldList(List<Map<String, ManageFieldItem>> fieldList) → void
add list field to manage list list data parse by _parseListData and append to list length _groupListLength
dispose() → void
dispose all
getByKey(String key, {int? index}) FormGroupItem
get manage by key, index use in list form if you create data by FormGroupManage.createList,can use index get manage, In fact, list form must use index param
getJson({List<String>? excludeField}) Map
get json data exclude fieldexcludeFieldis not include in json data
getList() List<Map>
get list data manage must create by FormGroupManage.createList
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeField(String key, {int? index}) → void
remove field and dispose manage item if use FormGroupManage.createListcreate data you can use removeField next param index delete Specify key if you need remove all index prefix key,you can use removeFieldByIndex
removeFieldByIndex(int index) → void
remove all prefix key by index this method will dispose all FocusNode should call by next tick
reset() → void
reset manage by default data
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String index) FormGroupItem