Transform.translate constructor

Transform.translate({
  1. required PdfPoint offset,
  2. Widget? child,
})

Creates a widget that transforms its child using a translation.

Implementation

Transform.translate({
  required PdfPoint offset,
  Widget? child,
})  : transform = Matrix4.translationValues(offset.x, offset.y, 0),
      origin = null,
      alignment = null,
      adjustLayout = false,
      unconstrained = false,
      super(child: child);