getValues method

Map<String, dynamic> getValues()

Get the values of the form fields.

Implementation

Map<String, dynamic> getValues() {
  return _fieldKeys.map(
    (key, field) => MapEntry(key, field.currentState?.value),
  );
}