Mark<S extends Shape> constructor

Mark<S extends Shape>({
  1. ColorEncode? color,
  2. ElevationEncode? elevation,
  3. GradientEncode? gradient,
  4. LabelEncode? label,
  5. Varset? position,
  6. ShapeEncode<S>? shape,
  7. SizeEncode? size,
  8. List<Modifier>? modifiers,
  9. int? layer,
  10. Selected? selected,
  11. StreamController<Selected?>? selectionStream,
  12. Transition? transition,
  13. Set<MarkEntrance>? entrance,
  14. String? tag(
    1. Tuple
    )?,
})

Creates a geometry mark.

Implementation

Mark({
  this.color,
  this.elevation,
  this.gradient,
  this.label,
  this.position,
  this.shape,
  this.size,
  this.modifiers,
  this.layer,
  this.selected,
  this.selectionStream,
  this.transition,
  this.entrance,
  this.tag,
})  : assert(isSingle([color, gradient], allowNone: true)),
      assert(selected == null || selected.keys.length == 1);