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.
no setteroverride
- jsonNodeKey → String
-
Return value of @JsonValue annotation 'name'
if present otherwise null.
no setter
- name → String
-
Name of this field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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 nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override