value property
get form value
will not contains value of disabled fields
Implementation
Map<String, dynamic> get value {
final Map<String, dynamic> map = <String, dynamic>{};
for (final FormeFieldState element in _states) {
if (!element.enabled || element.name == null) {
continue;
}
final String name = element.name!;
final dynamic value = element.value;
map[name] = value;
}
// Author (Lvyan): 添加除了field之外的value
_formValue.addAll(map);
return map;
}