InputBox constructor

InputBox({
  1. String? value,
  2. (num, num)? valueSelection,
  3. String? placeholder,
  4. bool? password,
  5. Event<String>? onDidChangeValue,
  6. Event<void>? onDidAccept,
  7. List<QuickInputButton>? buttons,
  8. Event<QuickInputButton>? onDidTriggerButton,
  9. String? prompt,
  10. dynamic validationMessage,
  11. String? title,
  12. num? step,
  13. num? totalSteps,
  14. bool? enabled,
  15. bool? busy,
  16. bool? ignoreFocusOut,
  17. Event<void>? onDidHide,
  18. void show()?,
  19. void hide()?,
  20. void dispose()?,
})

Implementation

factory InputBox({
  _i2.String? value,
  (
    _i2.num,
    _i2.num,
  )? valueSelection,
  _i2.String? placeholder,
  _i2.bool? password,
  _i3.Event<_i2.String>? onDidChangeValue,
  _i3.Event<void>? onDidAccept,
  _i2.List<_i3.QuickInputButton>? buttons,
  _i3.Event<_i3.QuickInputButton>? onDidTriggerButton,
  _i2.String? prompt,
  _i2.dynamic validationMessage,
  _i2.String? title,
  _i2.num? step,
  _i2.num? totalSteps,
  _i2.bool? enabled,
  _i2.bool? busy,
  _i2.bool? ignoreFocusOut,
  _i3.Event<void>? onDidHide,
  void Function()? show,
  void Function()? hide,
  void Function()? dispose,
}) =>
    InputBox._(
      value: value,
      valueSelection: valueSelection == null
          ? _i6.undefined
          : [
              valueSelection.$1,
              valueSelection.$2,
            ],
      placeholder: placeholder ?? _i6.undefined,
      password: password,
      onDidChangeValue: onDidChangeValue ?? _i6.undefined,
      onDidAccept: onDidAccept ?? _i6.undefined,
      buttons: buttons ?? _i6.undefined,
      onDidTriggerButton: onDidTriggerButton ?? _i6.undefined,
      prompt: prompt ?? _i6.undefined,
      validationMessage: validationMessage,
      title: title ?? _i6.undefined,
      step: step ?? _i6.undefined,
      totalSteps: totalSteps ?? _i6.undefined,
      enabled: enabled,
      busy: busy,
      ignoreFocusOut: ignoreFocusOut,
      onDidHide: onDidHide ?? _i6.undefined,
      show: show == null ? null : _i5.allowInterop(show),
      hide: hide == null ? null : _i5.allowInterop(hide),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );