Translation factory constructor

Translation(LengthValue x, LengthValue y, [ LengthValue z ])

Source

@DomName('Translation.Translation')
@DocsEditable()
factory Translation(LengthValue x, LengthValue y, [LengthValue z]) {
  if ((y is LengthValue) && (x is LengthValue) && z == null) {
    return _blink.BlinkTranslation.instance.constructorCallback_2_(x, y);
  }
  if ((z is LengthValue) && (y is LengthValue) && (x is LengthValue)) {
    return _blink.BlinkTranslation.instance.constructorCallback_3_(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.dartlang.org/stable/1.24.3/dart-html/Translation/Translation.html