SpellCheckConfiguration class Null safety

Controls how spell check is performed for text input.

This configuration determines the SpellCheckService used to fetch the List<SuggestionSpan> spell check results and the TextStyle used to mark misspelled words within text input.

Annotations

Constructors

SpellCheckConfiguration({SpellCheckService? spellCheckService, TextStyle? misspelledTextStyle})
Creates a configuration that specifies the service and suggestions handler for spell check.
const
SpellCheckConfiguration.disabled()
Creates a configuration that disables spell check.
const

Properties

hashCode int
The hash code for this object.
read-onlyoverride
misspelledTextStyle TextStyle?
Style used to indicate misspelled words.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
spellCheckEnabled bool
Whether or not the configuration should enable or disable spell check.
read-only
spellCheckService SpellCheckService?
The service used to fetch spell check results for text input.
final

Methods

copyWith({SpellCheckService? spellCheckService, TextStyle? misspelledTextStyle}) SpellCheckConfiguration
Returns a copy of the current SpellCheckConfiguration instance with specified overrides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override