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