create static method

FutureOr<PowerTextureImageInfo> create({
  1. int? textureId,
  2. int? width,
  3. int? height,
})

Implementation

static FutureOr<PowerTextureImageInfo> create(
    {int? textureId, int? width, int? height}) async {
  if (dummy != null) {
    return PowerTextureImageInfo(
        textureId: textureId,
        width: width,
        height: height,
        image: dummy!.clone());
  }

  dummy = await _createImage(1, 1);
  return PowerTextureImageInfo(
      textureId: textureId,
      width: width,
      height: height,
      image: dummy!.clone());
}