FractionalTranslation constructor

const FractionalTranslation({Key key, @required Offset translation, bool transformHitTests: true, Widget child })

Creates a widget that translates its child's painting.

The translation argument must not be null.

Implementation

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