chore: dart 3+

This commit is contained in:
lollipopkit
2023-10-28 21:52:18 +08:00
parent 7de5987355
commit 1023f092f6
4 changed files with 4 additions and 6 deletions

View File

@@ -133,9 +133,7 @@ class AppUpdatePlatformSpecific<T> {
return linux;
/// Not implemented yet.
case OS.web:
case OS.fuchsia:
case OS.unknown:
case OS.web || OS.fuchsia || OS.unknown:
return null;
}
}

View File

@@ -325,7 +325,7 @@ class ServerProvider extends ChangeNotifier {
Loggers.app.warning('Write script to ${spi.name} failed', e);
return;
} finally {
await file.delete();
if (await file.exists()) await file.delete();
}
}
}

View File

@@ -62,7 +62,7 @@ void _runInZone(void Function() body) {
body,
(obj, trace) {
Analysis.recordException(trace);
Loggers.root.warning(obj, trace);
Loggers.root.warning(obj);
},
zoneSpecification: zoneSpec,
);

View File

@@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=3.0.0"
dependencies:
archive: ^3.3.8