checkParameterLength method
Implementation
void checkParameterLength(
List<Expression<dynamic>> parameters, int? expectedLength) {
if (parameters.length != expectedLength) {
throw InvalidParameterCount(
'Function $functionName expects $expectedLength ${expectedLength == 1 ? 'parameter' : 'parameters'}');
}
}