String formatName(String name) { return name .split(RegExp(r'[_-]')) .map((s) => s[0].toUpperCase() + s.substring(1)) .join(); }