buildTransform method

  1. @protected
Widget buildTransform(
  1. BuildParameters params
)

Implementation

@protected
Widget buildTransform(BuildParameters params) {
  final props = params.props;

  return Transform(
    key: properties.getKey(params.id),
    origin: BaseProperties().getOffset(props["origin"]),
    alignment: params.buildProp("alignment"),
    transform: params.buildProp("transform") ?? Matrix4.zero(),
    child: builder.tryBuildWidget(params.context, params.widgets["child"],
        params.state, params.parentContext),
  );
}