InputContext constructor
InputContext({
- required int contextId,
- required InputContextType type,
- required bool autoCorrect,
- required bool autoComplete,
- required AutoCapitalizeType autoCapitalize,
- required bool spellCheck,
- 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,
);