dispatch(ch) {
    if (!ch) return this.alert();
    this.input += ch;
    this.cursor += 1;
    this.render();
  }
> Using a custom Prompt class as an Enquirer plugin

Custom prompt class - in this example, we use a custom prompt class
to show how to use a custom prompt as an Enquirer plugin.

This is necessary if you want Enquirer to be able to automatically run
your custom prompt when specified on the question "type".