status property
LoStatus
get
status
The current field status:
- LoStatus.pure, if the value equals initialValue.
- LoStatus.valid, if the error is null.
- LoStatus.invalid, if the error is not null.
Implementation
LoStatus get status {
if (error != null) {
return LoStatus.invalid;
} else if (value == initialValue) {
return LoStatus.pure;
} else {
return LoStatus.valid;
}
}