ScrollIntent constructor Null safety

const ScrollIntent(
  1. {required AxisDirection direction,
  2. ScrollIncrementType type = ScrollIncrementType.line}
)

Creates a const ScrollIntent that requests scrolling in the given direction, with the given type.

Implementation

const ScrollIntent({
  required this.direction,
  this.type = ScrollIncrementType.line,
})  : assert(direction != null),
      assert(type != null);