FractionalTranslation constructor

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({
  Key key,
  @required this.translation,
  this.transformHitTests = true,
  Widget child,
}) : assert(translation != null),
     super(key: key, child: child);