description

# texSubImage3D method Null safety

void texSubImage3D (

1. int target,
2. int level,
3. int xoffset,
4. int yoffset,
5. int zoffset,
6. int width,
7. int height,
8. int depth,
9. int format,
10. int type,
11. dynamic bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
12. [int? srcOffset]

)

## Implementation

    void texSubImage3D(
        int target,
        int level,
        int xoffset,
        int yoffset,
        int zoffset,
        int width,
        int height,
        int depth,
        int format,
        int type,
        bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
        [int? srcOffset]) {
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is int) &&
          srcOffset == null) {
        _texSubImage3D_1(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        return;
      }
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is ImageData) &&
          srcOffset == null) {
        var data_1 = convertDartToNative_ImageData(
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        _texSubImage3D_2(target, level, xoffset, yoffset, zoffset, width, height,
            depth, format, type, data_1);
        return;
      }
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is ImageElement) &&
          srcOffset == null) {
        _texSubImage3D_3(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        return;
      }
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is CanvasElement) &&
          srcOffset == null) {
        _texSubImage3D_4(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        return;
      }
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is VideoElement) &&
          srcOffset == null) {
        _texSubImage3D_5(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        return;
      }
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is ImageBitmap) &&
          srcOffset == null) {
        _texSubImage3D_6(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        return;
      }
      if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is TypedData) &&
          srcOffset == null) {
        _texSubImage3D_7(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video);
        return;
      }
      if (srcOffset != null &&
          (bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
              is TypedData)) {
        _texSubImage3D_8(
            target,
            level,
            xoffset,
            yoffset,
            zoffset,
            width,
            height,
            depth,
            format,
            type,
            bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
            srcOffset);
        return;
      }
      throw new ArgumentError("Incorrect number or type of arguments");
    }