hasError property Null safety

bool hasError

Implementation

bool get hasError => error != null;