1. override
void strokePattern(GraphicsPattern pattern, double width, JointStyle jointStyle, CapsStyle capsStyle)

Source

@override
void strokePattern(GraphicsPattern pattern, double width, JointStyle jointStyle, CapsStyle capsStyle) {
  // TODO: Currently strokePattern is only supported in Canvas2D
  this.strokeColor(0xFFFF00FF, width, jointStyle, capsStyle);
}