createBindsVar function
Implementation
Expression createBindsVar(
BaseParameterAnnotation annotation,
ServerParam param,
) {
if (annotation is! ServerBindsAnnotation) {
throw ArgumentError('Invalid annotation type: ${annotation.runtimeType}');
}
return createClass(
annotation.bind.bind,
).property('bind').call([createBindContext(param)]).awaited;
}