exportAsPngBase64 method
Exporta imagen como base64
Implementation
Future<String?> exportAsPngBase64({
Color? penColor,
Color? backgroundColor,
Size size = const Size(600, 300),
}) async {
final image = await exportAsImage(
penColor: penColor,
backgroundColor: backgroundColor,
size: size,
);
if (image == null) return null;
return base64Encode(image);
}