focusIndex property
int
get
focusIndex
Sometimes it's necessary to know current field index to be able to focus next one, in case a field might lose focus for some time.
e.g. LiteDatePicker uses this
Implementation
int get focusIndex {
final allFields = liteFormController
.getAllFieldsOfForm(
formName: _formName!,
mountedOnly: true,
)
.toList();
return allFields.indexOf(this);
}