ScrollIncrementDetails constructor Null safety

const ScrollIncrementDetails(
  1. {required ScrollIncrementType type,
  2. required ScrollMetrics metrics}
)

A const constructor for a ScrollIncrementDetails.

All of the arguments must not be null, and are required.

Implementation

const ScrollIncrementDetails({
  required this.type,
  required this.metrics,
})  : assert(type != null),
      assert(metrics != null);