opposite property
AxisDirection
get
opposite
Implementation
AxisDirection get opposite => switch (this) {
AxisDirection.up => AxisDirection.down,
AxisDirection.down => AxisDirection.up,
AxisDirection.left => AxisDirection.right,
AxisDirection.right => AxisDirection.left,
};