diff --git a/libs/sdk-flutter/lib/native_toolkit.dart b/libs/sdk-flutter/lib/native_toolkit.dart index d1a8d98a3..8c0dc7161 100644 --- a/libs/sdk-flutter/lib/native_toolkit.dart +++ b/libs/sdk-flutter/lib/native_toolkit.dart @@ -7,10 +7,6 @@ ExternalLibrary? _breezSDK; const _libName = "breez_sdk_bindings"; const _iosLibName = "breez_sdkFFI"; -class UnsupportedPlatform implements Exception { - UnsupportedPlatform(String s); -} - ExternalLibrary createLibraryImpl() { if (_breezSDK == null) { if (Platform.isAndroid || Platform.isLinux) { @@ -26,7 +22,7 @@ ExternalLibrary createLibraryImpl() { _breezSDK = ExternalLibrary.process(iKnowHowToUseIt: true); } } else { - throw UnsupportedPlatform('${Platform.operatingSystem} is not yet supported!'); + throw UnsupportedError('${Platform.operatingSystem} is not yet supported!'); } } return _breezSDK!;