CanvasView class final

A Canvas-backed TeaModel-compatible helper that wraps a Canvas in a static (non-interactive) view. Useful for compositing views inside larger layouts.

For interactive canvases, embed Canvas in your own TeaModel.view().

Constructors

CanvasView(Canvas canvas)

Properties

canvas Canvas
final
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
render() String
Returns the rendered canvas content as a plain string.
toString() String
A string representation of this object.
inherited

Operators

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