hasError property

bool get hasError

whether the input is in error state

Implementation

bool get hasError => _state?._error != null;