computeTransformMatrix static method

Matrix4? computeTransformMatrix(
  1. List<CSSFunctionalNotation> transform,
  2. RenderStyle renderStyle
)

Implementation

static Matrix4? computeTransformMatrix(List<CSSFunctionalNotation> transform, RenderStyle renderStyle) {
  Matrix4? matrix4;
  for (CSSFunctionalNotation method in transform) {
    Matrix4? transform = _computeMatrix(method, renderStyle);
    if (transform != null) {
      if (matrix4 == null) {
        matrix4 = transform;
      } else {
        matrix4.multiply(transform);
      }
    }
  }
  return matrix4;
}