SimplePrompt<T> constructor
const
SimplePrompt<T> ({
- required String title,
- required T initialValue,
- required KeyBindings buildBindings(
- PromptState<
T> state
- PromptState<
- required void render(
- FrameContext ctx,
- PromptState<
T> state
- PromptTheme theme = PromptTheme.dark,
- 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,
});