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; return linux;
/// Not implemented yet. /// Not implemented yet.
case OS.web: case OS.web || OS.fuchsia || OS.unknown:
case OS.fuchsia:
case OS.unknown:
return null; return null;
} }
} }

View File

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

View File

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

View File

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