FormField<T> constructor

const FormField<T>({
  1. required String name,
  2. @Default(Nothing()) Maybe<T> field,
})

Implementation

const factory FormField({
  /// Property representing the name of this [FormField] in a possible json request body
  required String name,

  /// Property representing the value of this [FormField] in a possible json request body
  @Default(Nothing()) Maybe<T> field,
}) = _FormField<T>;