hasErrors property

bool get hasErrors

Implementation

bool get hasErrors => errors == null ? false : errors!.isNotEmpty;