DirectionalCaretMovementIntent constructor

const DirectionalCaretMovementIntent(
  1. bool forward,
  2. bool collapseSelection, [
  3. bool collapseAtReversal = false,
  4. bool continuesAtWrap = false,
])

Creates a DirectionalCaretMovementIntent.

Implementation

const DirectionalCaretMovementIntent(
  super.forward,
  this.collapseSelection, [
  this.collapseAtReversal = false,
  this.continuesAtWrap = false,
]) : assert(!collapseSelection || !collapseAtReversal);