LyFormListener<T extends LyForm<D, E>, D, E> constructor

const LyFormListener<T extends LyForm<D, E>, D, E>({
  1. Key? key,
  2. required Widget child,
  3. T? bloc,
  4. void onPure()?,
  5. void onValid()?,
  6. void onInvalid()?,
  7. void onLoading()?,
  8. void onSuccess(
    1. D data
    )?,
  9. void onError(
    1. E error
    )?,
  10. void onAll(
    1. LyFormState<D, E>
    )?,
})

Implementation

const LyFormListener({
  super.key,
  required this.child,
  this.bloc,
  this.onPure,
  this.onValid,
  this.onInvalid,
  this.onLoading,
  this.onSuccess,
  this.onError,
  this.onAll,
});