Attributes constructor

Attributes({
  1. required int index,
  2. String? tag,
  3. required List<Offset> position,
  4. required Shape shape,
  5. Color? color,
  6. Gradient? gradient,
  7. double? elevation,
  8. Label? label,
  9. double? size,
})

Creates a attributes.

Implementation

Attributes({
  required this.index,
  this.tag,
  required this.position,
  required this.shape,
  this.color,
  this.gradient,
  this.elevation,
  this.label,
  this.size,
}) : assert(isSingle([color, gradient]));