ClassProperty class
Define a property (field) from a class.
- Inheritance
-
- Object
- Definition
- ClassProperty
- Mixed-in types
Constructors
-
ClassProperty({required ClassPropertyName name, required TypeName type, List<
String> annotations = const [], bool isResolveType = false}) - Instantiate a property (field) from a class.
Properties
-
annotations
→ List<
String> -
Some other custom annotation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOverride → bool
-
If property is an override from super class.
no setter
- isResolveType → bool
-
Whether this parameter corresponds to the __resolveType (or equivalent)
final
- name → ClassPropertyName
-
The definition name.
final
-
namedProps
→ Map<
String, Object> -
no setteroverride
- props → List
-
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - type → TypeName
-
The property type.
final
Methods
-
copyWith(
{TypeName? type, ClassPropertyName? name, List< String> ? annotations, bool? isResolveType}) → ClassProperty - Creates a copy of ClassProperty without modifying the original.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited