RegionAnnotation constructor

RegionAnnotation({
  1. Dim? dim,
  2. String? variable,
  3. required List values,
  4. Color? color,
  5. Gradient? gradient,
  6. int? layer,
})

Creates a region annotation.

Implementation

RegionAnnotation({
  this.dim,
  this.variable,
  required this.values,
  this.color,
  this.gradient,
  int? layer,
})  : assert(isSingle([color, gradient])),
      super(
        layer: layer,
      );