NyFieldBuilder typedef

NyFieldBuilder = Widget Function(BuildContext context, dynamic onChanged(dynamic value), dynamic currentValue, dynamic setState())

Typedef for the builder function used by Field.builder.

Receives the BuildContext, an onChanged callback to report value changes to the form, the currentValue of the field, and a setState callback to trigger a rebuild.

Implementation

typedef NyFieldBuilder =
    Widget Function(
      BuildContext context,
      Function(dynamic value) onChanged,
      dynamic currentValue,
      Function() setState,
    );