We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8233cf commit 52fcbb1Copy full SHA for 52fcbb1
lib/src/api/mixins.dart
@@ -881,6 +881,12 @@ enum RowColumnType {
881
882
/// Whether this is a column.
883
bool get isColumn => this == RowColumnType.column;
884
+
885
+ /// Returns the opposite of this [RowColumnType].
886
+ RowColumnType get opposite => switch (this) {
887
+ RowColumnType.row => RowColumnType.column,
888
+ RowColumnType.column => RowColumnType.row,
889
+ };
890
}
891
892
/// A mixin that allows node to have sequential children layout like row and
0 commit comments