htFetch method
Implementation
dynamic htFetch(String varName) {
switch (varName) {
case 'then':
return (HTEntity entity,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) {
HTFunction func = positionalArgs.first;
return then((value) => func.call(positionalArgs: [value]));
};
default:
throw HTError.undefined(varName);
}
}