1. @DomName('CanvasRenderingContext2D.createLinearGradient')
  2. @DocsEditable()
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1)

Source

@DomName('CanvasRenderingContext2D.createLinearGradient')
@DocsEditable()
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) =>
    _blink.BlinkCanvasRenderingContext2D.instance
        .createLinearGradient_Callback_4_(this, x0, y0, x1, y1);