ApiField constructor

ApiField({
  1. required String name,
  2. required TypeDeclaration type,
  3. int? offset,
  4. List<String> documentationComments = const <String>[],
  5. bool isAttached = false,
  6. bool isStatic = false,
})

Constructor for ApiField.

Implementation

ApiField({
  required super.name,
  required super.type,
  super.offset,
  super.documentationComments,
  this.isAttached = false,
  this.isStatic = false,
}) : assert(!isStatic || isAttached);