mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 00:50:27 +00:00
16 lines
434 B
Dart
16 lines
434 B
Dart
import "libgopeed_boot_stub.dart"
|
|
if (dart.library.html) 'entry/libgopeed_boot_browser.dart'
|
|
if (dart.library.io) 'entry/libgopeed_boot_native.dart';
|
|
import 'native/libgopeed_interface.dart';
|
|
|
|
abstract class LibgopeedBoot implements LibgopeedApi {
|
|
static LibgopeedBoot? _instance;
|
|
|
|
static LibgopeedBoot get instance {
|
|
_instance ??= LibgopeedBoot();
|
|
return _instance!;
|
|
}
|
|
|
|
factory LibgopeedBoot() => create();
|
|
}
|