TextInputConfiguration constructor

const TextInputConfiguration({
  1. int? viewId,
  2. TextInputType inputType = TextInputType.text,
  3. bool readOnly = false,
  4. bool obscureText = false,
  5. bool autocorrect = true,
  6. SmartDashesType? smartDashesType,
  7. SmartQuotesType? smartQuotesType,
  8. bool enableSuggestions = true,
  9. bool enableInteractiveSelection = true,
  10. String? actionLabel,
  11. TextInputAction inputAction = TextInputAction.done,
  12. Brightness keyboardAppearance = Brightness.light,
  13. TextCapitalization textCapitalization = TextCapitalization.none,
  14. AutofillConfiguration autofillConfiguration = AutofillConfiguration.disabled,
  15. bool enableIMEPersonalizedLearning = true,
  16. List<String> allowedMimeTypes = const <String>[],
  17. bool enableDeltaModel = false,
})

Creates configuration information for a text input control.

All arguments have default values, except actionLabel. Only actionLabel may be null.

Implementation

const TextInputConfiguration({
  this.viewId,
  this.inputType = TextInputType.text,
  this.readOnly = false,
  this.obscureText = false,
  this.autocorrect = true,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  this.enableSuggestions = true,
  this.enableInteractiveSelection = true,
  this.actionLabel,
  this.inputAction = TextInputAction.done,
  this.keyboardAppearance = Brightness.light,
  this.textCapitalization = TextCapitalization.none,
  this.autofillConfiguration = AutofillConfiguration.disabled,
  this.enableIMEPersonalizedLearning = true,
  this.allowedMimeTypes = const <String>[],
  this.enableDeltaModel = false,
}) : smartDashesType = smartDashesType ?? (obscureText ? SmartDashesType.disabled : SmartDashesType.enabled),
     smartQuotesType = smartQuotesType ?? (obscureText ? SmartQuotesType.disabled : SmartQuotesType.enabled);