import 'package:flutter/material.dart'; class EditorTab { final String id; final String title; final String? type; // 新增类型字段 final IconData? icon; // 新增图标字段 String content; String? fileName; EditorTab({ required this.id, required this.title, this.type, this.icon, this.content = '', this.fileName, }); }