strokeGradient method

GraphicsCommandStrokeGradient strokeGradient(
  1. GraphicsGradient gradient, [
  2. num width = 1.0,
  3. JointStyle jointStyle = JointStyle.MITER,
  4. CapsStyle capsStyle = CapsStyle.NONE,
])

Apply a stroke color to the previously drawn vector object.

Implementation

GraphicsCommandStrokeGradient strokeGradient(GraphicsGradient gradient,
    [num width = 1.0,
    JointStyle jointStyle = JointStyle.MITER,
    CapsStyle capsStyle = CapsStyle.NONE]) {
  final command =
      GraphicsCommandStrokeGradient(gradient, width, jointStyle, capsStyle);
  addCommand(command);
  return command;
}