TextInputConfiguration constructor

const TextInputConfiguration({TextInputType inputType: TextInputType.text, bool obscureText: false, bool autocorrect: true, bool enableSuggestions: true, String actionLabel, TextInputAction inputAction: TextInputAction.done, Brightness keyboardAppearance: Brightness.light, TextCapitalization textCapitalization: TextCapitalization.none })

Creates configuration information for a text input control.

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

Implementation

const TextInputConfiguration({
  this.inputType = TextInputType.text,
  this.obscureText = false,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.actionLabel,
  this.inputAction = TextInputAction.done,
  this.keyboardAppearance = Brightness.light,
  this.textCapitalization = TextCapitalization.none,
}) : assert(inputType != null),
     assert(obscureText != null),
     assert(autocorrect != null),
     assert(enableSuggestions != null),
     assert(keyboardAppearance != null),
     assert(inputAction != null),
     assert(textCapitalization != null);