Mark<S extends Shape> constructor
Mark<S extends Shape> ({
- ColorEncode? color,
- ElevationEncode? elevation,
- GradientEncode? gradient,
- LabelEncode? label,
- Varset? position,
- ShapeEncode<
S> ? shape, - SizeEncode? size,
- List<
Modifier> ? modifiers, - int? layer,
- Selected? selected,
- StreamController<
Selected?> ? selectionStream, - Transition? transition,
- Set<
MarkEntrance> ? entrance, - String? tag()?,
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);