showInputBox method

Future showInputBox([
  1. InputBoxOptions? options,
  2. CancellationToken? token
])

Opens an input box to ask the user for input.

The returned value will be undefined if the input box was canceled (e.g. pressing ESC). Otherwise the returned value will be the string typed by the user or an empty string if the user did not type anything but dismissed the input box with OK.

Implementation

_i2.Future<_i2.dynamic> showInputBox([
  _i4.InputBoxOptions? options,
  _i4.CancellationToken? token,
]) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'showInputBox',
      [
        options ?? _i5.undefined,
        token ?? _i5.undefined,
      ],
    ));