W3cubDocs

/Dart 2

setLineDash method

  1. @SupportedBrowser(SupportedBrowser.CHROME)
  2. @SupportedBrowser(SupportedBrowser.SAFARI)
  3. @SupportedBrowser(SupportedBrowser.IE, '11')
  4. @Unstable()
void setLineDash (List<num> dash)

Implementation

@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@SupportedBrowser(SupportedBrowser.IE, '11')
@Unstable()
void setLineDash(List<num> dash) {
  // TODO(14316): Firefox has this functionality with mozDash, but it's a bit
  // different.
  if (JS('bool', '!!#.setLineDash', this)) {
    JS('void', '#.setLineDash(#)', this, dash);
  } else if (JS('bool', '!!#.webkitLineDash', this)) {
    JS('void', '#.webkitLineDash = #', this, dash);
  }
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/CanvasRenderingContext2D/setLineDash.html