dispatchFull method

  1. @override
Uint8List dispatchFull(
  1. Uint8List data,
  2. int width,
  3. int height
)
override

Implementation

@override
Uint8List dispatchFull(Uint8List data, int width, int height) {
  final random = math.Random();
  final offset = random.nextInt(3) + 1;
  final rect = Rect(0, 0, width, height);
  for (int i = 0; i < offset; i++) {
    openOp(data, width, rect, i);
    closeOp(data, width, rect, i);
  }
  return data;
}