resolve method

StrokeSides resolve({
  1. required bool rtl,
})

The physical sides under a right-to-left (rtl) or left-to-right text direction: start is left left to right and right right to left. Physical values are themselves.

Implementation

StrokeSides resolve({required bool rtl}) => switch (this) {
      start => rtl ? right : left,
      end => rtl ? left : right,
      noStart => rtl ? noRight : noLeft,
      noEnd => rtl ? noLeft : noRight,
      _ => this,
    };