FractionalTranslationModifier constructor

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

Creates a widget that translates its child's painting.

The translation argument must not be null.

Implementation

const FractionalTranslationModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.translation,
  this.transformHitTests = true,
});