strokeMutable method

Paint strokeMutable(
  1. Color color,
  2. double width
)

Returns a new mutable stroke paint seeded from the cache.

Implementation

Paint strokeMutable(Color color, double width) {
  final cached = stroke(color, width);
  return Paint()
    ..color = cached.color
    ..style = cached.style
    ..strokeWidth = cached.strokeWidth
    ..isAntiAlias = cached.isAntiAlias;
}