newInstance static method
Method is used to create instance of BitmapRegionDecoder
data raw image data (could be raw svg string)
Returns nstance of decoder, which could be used for decoding byte array to bitmap.
Example:
// Create new instance of BitmapRegionDecoder
_decoder = BitmapRegionDecoder.newInstance(_imageData!);
print("Created BitmapRegionDecoder instance");
Implementation
static BitmapRegionDecoder newInstance(Uint8List data) => $prototype.newInstance(data);