render method
Render the specified text
to a PNG binary suitable for display with
Image.memory
.
text
should be escaped so as to be embeddable in a JavaScript string
literal.
color
should be a CSS color e.g. in the form of rbga(255,255,255,1.0)
.
Implementation
Future<Uint8List> render(
String text, {
required String requestId,
required bool displayMode,
required String color,
required double fontSize,
required double maxWidth,
}) =>
throw UnimplementedError('render() has not been implemented.');