method<T, R> function
MethodDescriptor
method<T, R>(
- String name, {
- AbstractType<
dynamic, AbstractType< ? type,dynamic, AbstractType> > - List<
ParameterDescriptor> ? parameters, - bool isAsync = false,
- bool isStatic = false,
- dynamic annotations = const [],
- 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);
}