ClassProperty constructor

ClassProperty({
  1. required ClassPropertyName name,
  2. required TypeName type,
  3. List<String> annotations = const [],
  4. 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);