LyForm<D, E> constructor
LyForm<D, E> ()
Implementation
LyForm() : super(const LyFormPureState([])) {
on<LyFormAddInputsEvent>((event, emit) async {
await onAddInputsEvent(event, emit);
});
on<LyFormChangedEvent>(
(event, emit) async {
await Future.delayed(Duration.zero);
await onChangedEvent(emit);
},
transformer: sequential(),
);
on<LyFormResetEvent>(
(event, emit) async {
await Future.delayed(Duration.zero);
await onResetEvent(emit);
},
transformer: sequential(),
);
on<LyFormSubmitEvent>(
(event, emit) async {
await Future.delayed(Duration.zero);
await onSubmitEvent(emit);
},
transformer: droppable(),
);
on<LyFormAddInputEvent>(
(event, emit) async {
await Future.delayed(Duration.zero);
await onAddInputEvent(event, emit);
},
transformer: sequential(),
);
on<LyFormRemoveInputEvent>(
(event, emit) async {
await Future.delayed(Duration.zero);
await onRemoveInputEvent(event, emit);
},
transformer: sequential(),
);
}