ImageData(data_OR_sw, int sh_OR_sw, [ int sh ])

Source

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