W3cubDocs

/Dart 2

CssRotation constructor

CssRotation(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");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/CssRotation/CssRotation.html