buildCheckResult static method

String? buildCheckResult(
  1. Iterable<RequestParamCheckResult> checkResults
)

Implementation

static String? buildCheckResult(
    Iterable<RequestParamCheckResult> checkResults) {
  final stringResults = checkResults
      .where((e) => !e.isOk)
      .map((e) => e.checkResultStr)
      .toList();
  return stringResults.isNotEmpty
      ? "got possibly imcompatible fields, ${stringResults.join(", ")}"
      : null;
}