in lib/src/parameters.dart [275:294]
dynamic _getParsed(String description, Function(String) parse) {
var string = asString;
try {
return parse(string);
} on FormatException catch (error) {
// DateTime.parse doesn't actually include any useful information in the
// FormatException, just the string that was being parsed. There's no use
// in including that in the RPC exception. See issue 17753.
var message = error.message;
if (message == string) {
message = '';
} else {
message = '\n$message';
}
throw RpcException.invalidParams('Parameter $_path for method '
'"$method" must be a valid $description, but was '
'${jsonEncode(string)}.$message');
}
}