我正在尝试画一个带有虚线边框的圆圈。我试过这个:
Shape shape = new Shape()
..graphics.beginPath()
            ..graphics.circle( 50 , 50, 50 )
            ..graphics.closePath()
            ..graphics.strokePattern(new GraphicsPattern.repeat(new BitmapData.fromImageElement(new HTML.ImageElement(src: "img/dash.png"))))
            ..addTo(stage);
    }
但是圆圈没有显示出来。似乎 strokePattern 行破坏了我的代码。知道如何解决这个问题吗?