SolandraRenderer class

Flutter has create support for offscreen rendering to images but it is very boilerplate-y.

Take the result of this and write to file like:

 final f = File(...);
 if (bytes != null) {
   await f.writeAsBytes(bytes);
 }

Constructors

SolandraRenderer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

render({required Size size, required dynamic render(Solandra)}) Future<Uint8List?>
Render an image to write to a file