prompt method

void prompt([
  1. T? value
])

Prompts the user to select or edit a value via dialog or popover.

Displays the appropriate UI based on the configured PromptMode.

Parameters:

  • value (T?, optional): An initial value to display in the prompt.

Example:

fieldState.prompt(initialValue);

Implementation

void prompt([T? value]) {
  if (widget.mode == PromptMode.dialog) {
    _showDialog(value);
  } else {
    _showPopover(value);
  }
}