RevealedOffset constructor Null safety

const RevealedOffset(
  1. {required double offset,
  2. required Rect rect}
)

Instantiates a return value for RenderAbstractViewport.getOffsetToReveal.

Implementation

const RevealedOffset({
  required this.offset,
  required this.rect,
}) : assert(offset != null),
     assert(rect != null);