ClassProperty constructor
ClassProperty({
- required ClassPropertyName name,
- required TypeName type,
- List<
String> annotations = const [], - bool isResolveType = false,
Instantiate a property (field) from a class.
Implementation
ClassProperty({
required this.name,
required this.type,
this.annotations = const [],
this.isResolveType = false,
}) : assert(hasValue(type) && hasValue(name)),
super(name: name);