Skip to content

Commit e41c533

Browse files
committed
Add sign property for ConditionJoin enum.
1 parent 6b73cbe commit e41c533

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/src/api/models/condition.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ enum ConditionJoin {
8989

9090
/// or operator
9191
or;
92+
93+
/// Represents the logical sign for this enum.
94+
String get sign {
95+
switch (this) {
96+
case ConditionJoin.and:
97+
return '&&';
98+
case ConditionJoin.or:
99+
return '||';
100+
}
101+
}
92102
}
93103

94104
/// Represents the mode of a condition (if/else if/else).

0 commit comments

Comments
 (0)