averageWidth property

int 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

int get averageWidth {
  if ((_averageKerning == _uninitializedStat ||
      _averageWidth == _uninitializedStat)) {
    updateStatistics();
  }
  return _averageWidth;
}