setWindowTitle static method

Future<void> setWindowTitle(
  1. String title
)

Window Title APIs

Implementation

static Future<void> setWindowTitle(String title) async {
  _globalWindowTitle.value = title;
  if (MyPlatform.isDesktop) {
    try {
      await windowManager.setTitle(title);
    } catch (e) {
      XlyLogger.error('设置窗口标题失败', e);
    }
  }
}