method<T, R> function
Implementation
MethodDescriptor method<T,R>(String name, {List<ParameterDescriptor>? parameters, bool isAsync = false,
bool isStatic = false,
annotations = const [],
required Function invoker}) {
return MethodDescriptor(name: name, returnType: R, parameters: parameters ?? [], annotations: annotations, invoker: invoker);
}