mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 15:54:35 +01:00
opt.: OS type
This commit is contained in:
@@ -112,12 +112,12 @@ class AppUpdatePlatformSpecific<T> {
|
||||
};
|
||||
|
||||
T? get current {
|
||||
switch (platform) {
|
||||
case PlatformType.macos:
|
||||
switch (OS.type) {
|
||||
case OS.macos:
|
||||
return mac;
|
||||
case PlatformType.ios:
|
||||
case OS.ios:
|
||||
return ios;
|
||||
case PlatformType.android:
|
||||
case OS.android:
|
||||
return android;
|
||||
default:
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user