on method

NikuTextField on({
  1. ValueChanged<String>? changed,
  2. GestureTapCallback? tap,
  3. VoidCallback? editingComplete,
  4. ValueChanged<String>? submitted,
  5. FormFieldValidator<String>? saved,
})

call with the final value when the form is saved via FormState.save

Equivalent to

TextFormField(
  onChanged: changed,
  onTap: tap,
  onEditingComplete: editingComplete
  onFieldSubmitted: submitted,
  onSaved: saved
)

Implementation

NikuTextField on(
    {ValueChanged<String>? changed,
    GestureTapCallback? tap,
    VoidCallback? editingComplete,
    ValueChanged<String>? submitted,
    FormFieldValidator<String>? saved}) {
  this._onChanged = changed;
  this._onTap = tap;
  this._onEditingComplete = editingComplete;
  this._onFieldSubmitted = submitted;
  this._onSaved = saved;

  return this;
}