1. SupportedBrowser(SupportedBrowser.CHROME)
  2. SupportedBrowser(SupportedBrowser.SAFARI)
  3. SupportedBrowser(SupportedBrowser.IE, '11')
  4. Unstable()
  5. DomName('CanvasRenderingContext2D.getLineDash')
List<num> getLineDash()

Source

@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@SupportedBrowser(SupportedBrowser.IE, '11')
@Unstable()
@DomName('CanvasRenderingContext2D.getLineDash')
List<num> getLineDash() {
  // TODO(14316): Firefox has this functionality with mozDash, but it's a bit
  // different.
  var result = _getLineDash();
  if (result == null) {
    result = [];
  }
  return result;
}