String toDataUrl(String type, [num? quality]) => (quality == null) ? toDataURL(type) : toDataURL(type, quality.toJS);