TypeMember class ast

A class type member (field).

Constructors

TypeMember({required String name, required AbstractType type, List<TypeAnnotation> annotations = const <TypeAnnotation>[]})
Construct a new TypeMember.
const

Properties

annotations List<TypeAnnotation>
Type annotations
final
hashCode int
The hash code for this object.
read-onlyoverride
jsonNodeKey String
Return value of @JsonValue annotation 'name' if present otherwise null.
read-only
name String
Name of this field.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type AbstractType
Type of this field.
final

Methods

copyWith({String? name, AbstractType? type, List<TypeAnnotation>? annotations}) TypeMember
Create a copy of this TypeMember and override with given values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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