isInvalid property

bool get isInvalid

Whether the field is invalid.

Implementation

bool get isInvalid => value.error != null;