minimumArity static method
The smallest number of arguments function accepts, for error
messages, or null when unknown (more than 8).
Implementation
static int? minimumArity(Object function) {
for (var count = 0; count <= 8; count++) {
if (accepts(function, count)) {
return count;
}
}
return null;
}