FractionalTranslation constructor Null safety

const FractionalTranslation(
  1. {Key? key,
  2. required Offset translation,
  3. bool transformHitTests = true,
  4. Widget? child}
)

Creates a widget that translates its child's painting.

The translation argument must not be null.

Implementation

const FractionalTranslation({
  super.key,
  required this.translation,
  this.transformHitTests = true,
  super.child,
}) : assert(translation != null);