asImage method

Image asImage()

Implementation

ui.Image asImage() {
  if (!enableShaderReadUsage) {
    throw Exception(
        'Only shader readable Flutter GPU textures can be used as UI Images');
  }
  return _asImage();
}