Source
CanvasPattern createPattern(canvas_OR_image, String repetitionType) {
if ((repetitionType is String || repetitionType == null) && (canvas_OR_image is CanvasElement)) {
return wrap_jso(_blink.BlinkCanvasRenderingContext2D.instance.createPattern_Callback_2_(unwrap_jso(this), unwrap_jso(canvas_OR_image), repetitionType));
}
if ((repetitionType is String || repetitionType == null) && (canvas_OR_image is VideoElement)) {
return wrap_jso(_blink.BlinkCanvasRenderingContext2D.instance.createPattern_Callback_2_(unwrap_jso(this), unwrap_jso(canvas_OR_image), repetitionType));
}
throw new ArgumentError("Incorrect number or type of arguments");
}