ResponseInput constructor

const ResponseInput({
  1. required ResponseCommands commands,
  2. required bool handled,
  3. List<ComponentInstance>? dirty,
})

Creates a ResponseInput with the given parameters.

The commands parameter specifies the response commands to execute after processing the input event.

The handled parameter indicates whether the input event was successfully processed and handled by the component.

The dirty parameter optionally specifies which ComponentInstances require re-rendering as a result of processing the input event.

Example:

ResponseInput(
  commands: ResponseCommands.none,
  handled: true,
  dirty: [myComponentInstance],
);

Implementation

const ResponseInput({
  required this.commands,
  required this.handled,
  this.dirty,
});