InputEvents constructor
InputEvents({
- void onInput(
- Event e
- void onChange(
- Event e
- void onSelect(
- Event e
- void onFocus(
- FocusEvent e
- void onFocusIn(
- FocusEvent e
- void onFocusOut(
- FocusEvent e
- void onBlur(
- FocusEvent e
- void onInvalid(
- Event e
- void onKeyDown(
- KeyboardEvent e
- void onKeyUp(
- KeyboardEvent e
- void onPaste(
- ClipboardEvent e
- Map<
String, void Function(Event)> ? customEvents,
A helper class that simplifies binding DOM input, change, select, focus, focusin, focusout, and blur events to input components.
Example
final eventsHandler = InputEvents(
onInput: (e) => print('Input event!'),
onChange: (e) => print('Change event!'),
onSelect: (e) => print('Select event!'),
onFocus: (e) => print('Focus event!'),
onFocusIn: (e) => print('Focusin event!'),
onFocusOut: (e) => print('Focusout event!'),
onBlur: (e) => print('Blur event!'),
onInvalid: (e) => print('Invalid event!'),
onPaste: (e) => print('Paste event!'),
);
Implementation
InputEvents({
super.onInput,
super.onChange,
super.onSelect,
super.onFocus,
super.onFocusIn,
super.onFocusOut,
super.onBlur,
super.onInvalid,
super.onKeyDown,
super.onKeyUp,
super.onPaste,
this.customEvents,
});