collectErrors method

List<Map<String, dynamic>> collectErrors(
  1. List<List<ValidationError>> errors
)

Implementation

List<Map<String, dynamic>> collectErrors(
        List<List<ValidationError>> errors) =>
    errors.expand((errors) => errors).map((error) => error.toJson()).toList();