MethodDescriptor<T, V> constructor

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

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