averageWidth property

double get averageWidth

Gets the average width of artifacts in the band.

Triggers calculation if not previously computed.

Returns: The average width as a double, or -1 if there are fewer than 2 artifacts.

Implementation

double get averageWidth {
  if ((_averageKerning == -1 || _averageWidth == -1)) {
    _updateStatistics();
  }
  return _averageWidth;
}