samplingSeed property Null safety

int samplingSeed
protected">@protectedoverride

Returns a seed value used by generateSamples to seed a random number generator to avoid sample aliasing.

Subclasses should override this and provide a custom seed.

The value returned should be the same each time it is called, unless the curve definition changes.

Implementation

@override
@protected
int get samplingSeed {
  _initializeIfNeeded();
  final Offset seedPoint = _cubicSegments[0][1];
  return ((seedPoint.dx + seedPoint.dy) * 10000).round();
}