ImageData(data_OR_width, int height_OR_width, [int height])
Source
@DomName('ImageData.ImageData')
@DocsEditable()
factory ImageData(data_OR_width, int height_OR_width, [int height]) {
if ((height_OR_width is int || height_OR_width == null) && (data_OR_width is int || data_OR_width == null) && height == null) {
return wrap_jso(_blink.BlinkImageData.instance.constructorCallback_2_(data_OR_width, height_OR_width));
}
if ((height is int || height == null) && (height_OR_width is int || height_OR_width == null) && (data_OR_width is Uint8ClampedList || data_OR_width == null)) {
return wrap_jso(_blink.BlinkImageData.instance.constructorCallback_3_(data_OR_width, height_OR_width, height));
}
throw new ArgumentError("Incorrect number or type of arguments");
}