bool hasFlag(String name) { try { return this[name] ?? false; } on Exception catch (_) { return false; } }