newInstance method
@brief Method is used to create instance of BitmapRegionDecoder @param data raw image data (could be raw svg string) @return nstance of decoder, which could be used for decoding byte array to bitmap.
Dart code snippet: @snippet bitmap_region_decoder_example.dart dart_BitmapRegionDecoder_newInstance
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;
}