W3cubDocs

/Dart 2

context2D property

CanvasRenderingContext2D context2D

An API for drawing on this canvas.

Implementation

CanvasRenderingContext2D get context2D =>
    JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d');

© 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/CanvasElement/context2D.html