getErrors method

Map<String, List<String>> getErrors()

Implementation

Map<String, List<String>> getErrors() {
  final Map<String, List<String>> errors = Map.from(_errors);
  errors.removeWhere((key, value) => !attributes.containsKey(key));
  return errors;
}