JsonImage constructor

JsonImage({
  1. String? imageUri,
  2. ByteBuffer? byteBuffer,
})

Creates a new instance of JsonImage.

Implementation

JsonImage({
  super.imageUri,
  super.byteBuffer,
}) {
  if (imageUri == null && byteBuffer == null) {
    throw Exception('Invalid JsonImage');
  }
}