CssScale constructor

CssScale(
  1. num x,
  2. num y,
  3. [num? z]
)

Implementation

factory CssScale(num x, num y, [num? z]) {
  if ((y is num) && (x is num) && z == null) {
    return CssScale._create_1(x, y);
  }
  if ((z is num) && (y is num) && (x is num)) {
    return CssScale._create_2(x, y, z);
  }
  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.13.0/dart-html/CssScale/CssScale.html