mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: builtin editor (#503)
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:fl_lib/fl_lib.dart';
|
||||
import 'package:server_box/data/res/store.dart';
|
||||
|
||||
import '../../../core/utils/server.dart';
|
||||
import '../server/server_private_info.dart';
|
||||
import 'worker.dart';
|
||||
part of 'worker.dart';
|
||||
|
||||
class SftpReq {
|
||||
final ServerPrivateInfo spi;
|
||||
@@ -69,9 +62,8 @@ class SftpReqStatus {
|
||||
int get hashCode => id ^ super.hashCode;
|
||||
|
||||
void dispose() {
|
||||
// ignore: deprecated_member_use_from_same_package
|
||||
worker.dispose();
|
||||
completer?.complete();
|
||||
worker._dispose();
|
||||
completer?.complete(true);
|
||||
}
|
||||
|
||||
void onNotify(dynamic event) {
|
||||
|
||||
@@ -5,9 +5,12 @@ import 'dart:typed_data';
|
||||
|
||||
import 'package:dartssh2/dartssh2.dart';
|
||||
import 'package:easy_isolate/easy_isolate.dart';
|
||||
import 'package:fl_lib/fl_lib.dart';
|
||||
import 'package:server_box/core/utils/server.dart';
|
||||
import 'package:server_box/data/model/server/server_private_info.dart';
|
||||
import 'package:server_box/data/res/store.dart';
|
||||
|
||||
import '../../../core/utils/server.dart';
|
||||
import 'req.dart';
|
||||
part 'req.dart';
|
||||
|
||||
class SftpWorker {
|
||||
final Function(Object event) onNotify;
|
||||
@@ -20,14 +23,7 @@ class SftpWorker {
|
||||
required this.req,
|
||||
});
|
||||
|
||||
/// Use [@Deprecated] to prevent calling [SftpWorker.dispose] directly
|
||||
///
|
||||
/// Don't delete this method
|
||||
@Deprecated(
|
||||
"Use [SftpWorkerStatus.dispose] to dispose the worker, "
|
||||
"instead of [SftpWorker.dispose]",
|
||||
)
|
||||
void dispose() {
|
||||
void _dispose() {
|
||||
worker.dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user