firstErrorToString property

String get firstErrorToString

get first error

key of map entry is field

if there any error occured, will throw Exception

Implementation

String get firstErrorToString {
  if (!isError) {
    throw Exception('There is no error');
  }
  return '${firstError.fieldName} : ${firstError.errorMessage}';
}