FormGroupManage class
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 fieldexcludeField
is 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.createList create 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