MethodDescriptor<T, V> constructor
MethodDescriptor<T, V> ({
- required String name,
- List annotations = const [],
- required List<
ParameterDescriptor> parameters, - bool isAsync = false,
- bool isStatic = false,
- bool isNullable = false,
- Function? invoker,
- AbstractType<
dynamic, AbstractType< ? type,dynamic, AbstractType> >
Implementation
MethodDescriptor({
required super.name,
super.annotations = const [],
required this.parameters,
this.isAsync = false,
this.isStatic = false,
this.isNullable = false,
this.invoker,
AbstractType<dynamic, AbstractType>? type
}) {
if ( type != null)
this.type = type;
else
inferType(V, isNullable);
}