from static method
Implementation
static XTransformParams? from(
XTransform widget,
SSRBuildContext context,
WidgetMetadata metadata,
) {
final child = _cookWidget(widget.child, context);
if (metadata.vanish && child == null) {
return null;
}
return XTransformParams(
child: child ?? const EmptyWidget(),
matrix4: Matrix4(
widget.matrix4[0],
widget.matrix4[1],
widget.matrix4[2],
widget.matrix4[3],
widget.matrix4[4],
widget.matrix4[5],
widget.matrix4[6],
widget.matrix4[7],
widget.matrix4[8],
widget.matrix4[9],
widget.matrix4[10],
widget.matrix4[11],
widget.matrix4[12],
widget.matrix4[13],
widget.matrix4[14],
widget.matrix4[15],
),
origin: widget.origin.toOffset(),
);
}