stroke method

void stroke(
  1. Color color, {
  2. double? width,
  3. double? opacity,
})

Sets the stroke color, width, and opacity for the path.

Implementation

void stroke(Color color, {double? width, double? opacity}) {
  addStyle('stroke', color.toHex());
  if (width != null) addStyle('stroke-width', width.toString());
  if (opacity != null) addStyle('stroke-opacity', opacity.toString());
}