Coord constructor

Coord({
  1. int? dimCount,
  2. double? dimFill,
  3. bool? transposed,
  4. Color? color,
  5. Gradient? gradient,
})

Creates a coordinate.

Implementation

Coord({
  this.dimCount,
  this.dimFill,
  this.transposed,
  this.color,
  this.gradient,
})  : assert(dimCount == null || (dimCount >= 1 && dimCount <= 2)),
      assert(isSingle([color, gradient], allowNone: true));