bandModeFor function

BandMode bandModeFor(
  1. Offset start,
  2. Offset end
)

The band's mode by its drag direction (interaction-core D1): left to right is a window, right to left a crossing.

Implementation

BandMode bandModeFor(Offset start, Offset end) =>
    end.dx >= start.dx ? BandMode.window : BandMode.crossing;