method<T, R> function

MethodDescriptor method<T, R>(
  1. String name, {
  2. List<ParameterDescriptor>? parameters,
  3. bool isAsync = false,
  4. bool isStatic = false,
  5. dynamic annotations = const [],
  6. required Function invoker,
})

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);
}