hasErrors property Null safety

bool hasErrors

Implementation

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