toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  if (graphqlErrors.isEmpty) return 'err_unknown'.l10n;
  if (graphqlErrors.length == 1) return graphqlErrors.first.message;
  return graphqlErrors.map((e) => e.message).toList().toString();
}