SimplePrompt<T> constructor

const SimplePrompt<T>({
  1. required String title,
  2. required T initialValue,
  3. required KeyBindings buildBindings(
    1. PromptState<T> state
    ),
  4. required void render(
    1. FrameContext ctx,
    2. PromptState<T> state
    ),
  5. PromptTheme theme = PromptTheme.dark,
  6. bool hideCursor = true,
})

Implementation

const SimplePrompt({
  required this.title,
  required this.initialValue,
  required this.buildBindings,
  required this.render,
  this.theme = PromptTheme.dark,
  this.hideCursor = true,
});