errors property Null safety

Map<String, Object> errors

An object containing any errors generated by failing validation, or empty Map if there are no errors.

Implementation

Map<String, Object> get errors => Map<String, Object>.unmodifiable(_errors);