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

Creates a widget that translates its child's painting.

The translation argument must not be null.

Source

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