diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 6eb925bf9..e4d8416d1 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -1444,7 +1444,9 @@ Future _adjustRestoreMainWindowOffset( /// Restore window position and size on start /// Note that windowId must be provided if it's subwindow Future restoreWindowPosition(WindowType type, {int? windowId}) async { - if (bind.mainGetEnv("DISABLE_RUSTDESK_RESTORE_WINDOW_POSITION").isNotEmpty) { + if (bind + .mainGetEnv(key: "DISABLE_RUSTDESK_RESTORE_WINDOW_POSITION") + .isNotEmpty) { return false; } if (type != WindowType.Main && windowId == null) {