render method

Future<Uint8List> render(
  1. String text, {
  2. required String requestId,
  3. required bool displayMode,
  4. required String color,
  5. required double fontSize,
  6. required double maxWidth,
})

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.');