INNER CODE UNIT · Dart
yOffset
vintage/scratcher · lib/widgets.dart:294
final yOffset = size.height / accuracy;
final points = <Offset>[];
for (var x = 0; x < accuracy; x++) {
for (var y = 0; y < accuracy; y++) {
final point = Offset(
x * xOffset,
y * yOffset,
);
points.add(point);
}
}
return points;
}
/// Resets the scratcher state to the initial values.
void reset({Duration? duration}) {