InputContext constructor

InputContext({
  1. required int contextId,
  2. required InputContextType type,
  3. required bool autoCorrect,
  4. required bool autoComplete,
  5. required AutoCapitalizeType autoCapitalize,
  6. required bool spellCheck,
  7. required bool shouldDoLearning,
})

Implementation

InputContext({
  /// This is used to specify targets of text field operations.  This ID
  /// becomes invalid as soon as onBlur is called.
  required int contextId,

  /// Type of value this text field edits, (Text, Number, URL, etc)
  required InputContextType type,

  /// Whether the text field wants auto-correct.
  required bool autoCorrect,

  /// Whether the text field wants auto-complete.
  required bool autoComplete,

  /// The auto-capitalize type of the text field.
  required AutoCapitalizeType autoCapitalize,

  /// Whether the text field wants spell-check.
  required bool spellCheck,

  /// Whether text entered into the text field should be used to improve
  /// typing suggestions for the user.
  required bool shouldDoLearning,
}) : _wrapped = $js.InputContext(
        contextID: contextId,
        type: type.toJS,
        autoCorrect: autoCorrect,
        autoComplete: autoComplete,
        autoCapitalize: autoCapitalize.toJS,
        spellCheck: spellCheck,
        shouldDoLearning: shouldDoLearning,
      );