enum Flavor { dev, pre, sky, xhj, } class F { static late final Flavor appFlavor; static String get name => appFlavor.name; static String get title { switch (appFlavor) { case Flavor.dev: return '星勤-dev'; case Flavor.pre: return '星勤-pre'; case Flavor.sky: return '星勤-sky'; case Flavor.xhj: return '星勤-xhj'; } } }