Attribute constructor

Attribute({
  1. required String name,
  2. required String type,
  3. String? modifiers,
  4. String? value,
})

Example

Attribute(modifiers: 'final', type: 'String?', name: 'name'),
Attribute(modifiers: 'final', type: 'String?', name: 'surname', value: "'Star'")

Output: final String? name; Output: final String? surname = 'Star';

Implementation

Attribute({
  required this.name,
  required this.type,
  this.modifiers,
  this.value
});