RenderFractionalTranslation constructor Null safety

RenderFractionalTranslation(
  1. {required Offset translation,
  2. bool transformHitTests = true,
  3. RenderBox? child}
)

Creates a render object that translates its child's painting.

The translation argument must not be null.

Implementation

RenderFractionalTranslation({
  required Offset translation,
  this.transformHitTests = true,
  RenderBox? child,
}) : assert(translation != null),
     _translation = translation,
     super(child);