illegalArg<T> function

T illegalArg<T>(
  1. String prop, [
  2. String? message
])

Implementation

T illegalArg<T>(String prop, [String? message]) => throw Exception(
    message ?? "Illegal argument $prop: ${message ?? 'No message'}");