method<T, R> function

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

Implementation

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