We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 720d49e commit 62f43c8Copy full SHA for 62f43c8
libs/sdk-flutter/lib/native_toolkit.dart
@@ -7,10 +7,6 @@ ExternalLibrary? _breezSDK;
7
const _libName = "breez_sdk_bindings";
8
const _iosLibName = "breez_sdkFFI";
9
10
-class UnsupportedPlatform implements Exception {
11
- UnsupportedPlatform(String s);
12
-}
13
-
14
ExternalLibrary createLibraryImpl() {
15
if (_breezSDK == null) {
16
if (Platform.isAndroid || Platform.isLinux) {
@@ -26,7 +22,7 @@ ExternalLibrary createLibraryImpl() {
26
22
_breezSDK = ExternalLibrary.process(iKnowHowToUseIt: true);
27
23
}
28
24
} else {
29
- throw UnsupportedPlatform('${Platform.operatingSystem} is not yet supported!');
25
+ throw UnsupportedError('${Platform.operatingSystem} is not yet supported!');
30
31
32
return _breezSDK!;
0 commit comments