getStroke function
List<Offset>
getStroke(
- List<
PointVector> points, { - StrokeOptions? options,
- bool rememberSimulatedPressure = false,
Get an array of points describing a polygon that surrounds the input points.
The rememberSimulatedPressure
argument sets whether to update the
input points
with the simulated pressure values.
Implementation
List<Offset> getStroke(
List<PointVector> points, {
StrokeOptions? options,
bool rememberSimulatedPressure = false,
}) {
options ??= StrokeOptions();
return getStrokeOutlinePoints(
getStrokePoints(
points,
options: options,
),
options: options,
rememberSimulatedPressure: rememberSimulatedPressure,
);
}