newInstance 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
BitmapRegionDecoder newInstance(Uint8List data) {
final _newInstanceFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer<Void> Function(Pointer<Void>),
Pointer<Void> Function(Pointer<Void>)
>('navigine_sdk_flutter_BitmapRegionDecoder_newInstance__Data'));
final _dataHandle = navigine_sdk_flutter_Uint8List_ToFfi(data);
final __resultHandle = _newInstanceFfi(_dataHandle);
navigine_sdk_flutter_Uint8List_ReleaseFfiHandle(_dataHandle);
final _result = navigine_sdk_flutter_BitmapRegionDecoder_FromFfi(__resultHandle);
navigine_sdk_flutter_BitmapRegionDecoder_ReleaseFfiHandle(__resultHandle);
return _result;
}