This commit is contained in:
lollipopkit
2023-12-20 11:34:18 +08:00
parent eec13678a1
commit 6924290626
20 changed files with 104 additions and 105 deletions

View File

@@ -77,19 +77,19 @@ class SftpReqStatus {
void onNotify(dynamic event) {
var shouldDispose = false;
switch (event) {
case SftpWorkerStatus val:
case final SftpWorkerStatus val:
status = val;
if (status == SftpWorkerStatus.finished) {
dispose();
}
break;
case double val:
case final double val:
progress = val;
break;
case int val:
case final int val:
size = val;
break;
case Duration d:
case final Duration d:
spentTime = d;
break;
default:

View File

@@ -56,7 +56,7 @@ Future<void> isolateMessageHandler(
SendErrorFunction sendError,
) async {
switch (data) {
case SftpReq val:
case final SftpReq val:
switch (val.type) {
case SftpReqType.download:
await _download(data, mainSendPort, sendError);