CssRotation constructor
- dynamic angleValue_OR_x,
- [num y,
- num z,
- CssNumericValue angle]
Implementation
factory CssRotation(angleValue_OR_x, [num y, num z, CssNumericValue angle]) {
if ((angleValue_OR_x is CssNumericValue) &&
y == null &&
z == null &&
angle == null) {
return CssRotation._create_1(angleValue_OR_x);
}
if ((angle is CssNumericValue) &&
(z is num) &&
(y is num) &&
(angleValue_OR_x is num)) {
return CssRotation._create_2(angleValue_OR_x, y, z, angle);
}
throw new ArgumentError("Incorrect number or type of arguments");
}