MarkElement<S extends ElementStyle> constructor

MarkElement<S extends ElementStyle>({
  1. required S style,
  2. double? rotation,
  3. Offset? rotationAxis,
  4. String? tag,
})

Creates an element.

Implementation

MarkElement({
  required this.style,
  this.rotation,
  this.rotationAxis,
  this.tag,
}) : assert(rotation == null || rotationAxis != null);