toDataUrl method

  1. @override
String toDataUrl()
override

Returns a data URI containing the canvas data in PNG format. See toPNG.

Implementation

@override
String toDataUrl() {
  var url = _canvas.toDataUrl('image/png');
  return url;
}