ApiField class

Represents a field of an API.

Inheritance

Constructors

ApiField({required String name, required TypeDeclaration type, int? offset, List<String> documentationComments = const <String>[], bool isAttached = false, bool isStatic = false})
Constructor for ApiField.

Properties

defaultValue String?
Stringified version of the default value of types that have default values.
finalinherited
documentationComments List<String>
List of documentation comments, separated by line.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isAttached bool
Whether this is an attached field for a AstProxyApi.
final
isStatic bool
Whether this is a static field of a AstProxyApi.
final
name String
The name of the entity.
finalinherited
offset int?
The offset in the source file where the NamedType appears.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TypeDeclaration
The type.
finalinherited

Methods

copyWithType(TypeDeclaration type) ApiField
Returns a copy of Parameter instance with new attached TypeDeclaration.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited