fill method

void fill(
  1. Color color, {
  2. double? opacity,
})

Sets the fill color and opacity for the path.

Implementation

void fill(Color color, {double? opacity}) {
  addStyle('fill', Colors.transparent == color ? 'none' : color.toHex());
  if (opacity != null) addStyle('fill-opacity', opacity.toString());
}