EasyFormFieldSaveCallback<T> typedef

EasyFormFieldSaveCallback<T> = Future<T> Function(Map<String, dynamic> values, EasyFormState form)

Signature for save callback.

A map with all the values of the form fields is passed as a parameter. All fields EasyFormField, EasyFormTextField, etc. have a mandatory name parameter, which is used as the name of the field in the map.

Implementation

typedef EasyFormFieldSaveCallback<T> = Future<T> Function(
    Map<String, dynamic> values, EasyFormState form);