spellCheck property

bool get spellCheck

Gets or sets a value indicating whether to check spelling.

The default value is false.

Implementation

bool get spellCheck {
  if (_helper.isLoadedField) {
    _spellCheck = !(_helper.isFlagPresent(FieldFlags.doNotSpellCheck) ||
        _helper.flags.contains(FieldFlags.doNotSpellCheck));
  }
  return _spellCheck;
}
set spellCheck (bool value)

Implementation

set spellCheck(bool value) {
  if (spellCheck != value) {
    _spellCheck = value;
    _spellCheck
        ? _helper.isLoadedField
            ? _helper.removeFlag(FieldFlags.doNotSpellCheck)
            : _helper.flags.remove(FieldFlags.doNotSpellCheck)
        : _helper.flags.add(FieldFlags.doNotSpellCheck);
  }
}