isNotAnAmbiguousType static method

void isNotAnAmbiguousType(
  1. Type type,
  2. String paramName
)

Implementation

static void isNotAnAmbiguousType(Type type, String paramName) {
  if (Types.isAmbiguousType(type)) {
    final message = '${StringResources.typeIsAmbiguous(type)}\n'
        'Parameter name: $paramName';
    throw ArgumentError(message);
  }
}