add diffing for a lot of events
This commit is contained in:
parent
4e140e9fc7
commit
6e2d56ec75
1 changed files with 591 additions and 168 deletions
13
lib/helpers/extensions/join_rule_name.dart
Normal file
13
lib/helpers/extensions/join_rule_name.dart
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import "package:nexus/models/join_rule.dart";
|
||||
|
||||
extension JoinRuleName on JoinRule {
|
||||
/// What the rule is called in the UI, e.g. "Invite only".
|
||||
String get displayName => switch (this) {
|
||||
.public => "Public",
|
||||
.invite => "Invite only",
|
||||
.knock => "Knock",
|
||||
.restricted => "Restricted",
|
||||
.knockRestricted => "Restricted or knock",
|
||||
.private => "Private",
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue