FieldWidgetConstructor typedef

FieldWidgetConstructor = Widget Function({required FieldContext fieldContext, Key? key})

The interface for the Field.widgetBuilder method which builds a widget from information available in the FieldContext instance it receives.

Any widget that is supposed to represent a Field should interface with this typedef.

Implementation

typedef FieldWidgetConstructor = Widget Function({
  Key? key,
  required FieldContext fieldContext,
});