minOf method

Implementation

LayoutBaselineOffset minOf(LayoutBaselineOffset other) {
  return switch ((this, other)) {
    (final double lhs?, final double rhs?) => lhs >= rhs ? other : this,
    (final double lhs?, null) => LayoutBaselineOffset(lhs),
    (null, final LayoutBaselineOffset rhs) => rhs,
  };
}