context2D property Null safety

CanvasRenderingContext2D context2D

An API for drawing on this canvas.

Implementation

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