showInputBox method

Future<String?> showInputBox({
  1. String? prompt,
  2. String? placeholder,
  3. String? value,
  4. bool password = false,
})

Show an input box and return user input.

Implementation

Future<String?> showInputBox({
  String? prompt,
  String? placeholder,
  String? value,
  bool password = false,
}) async {
  final resp = await _protocol.sendRequest('vscode/showInputBox', {
    'prompt': ?prompt,
    'placeholder': ?placeholder,
    'value': ?value,
    'password': password,
  });
  if (resp.isSuccess) return resp.result as String?;
  return null;
}