DiagramShapeThumbnailCache class final
One DiagramShapeThumbnail per shape definition and content color adaptation, recorded once and kept for as long as the cache, independently of which gallery or tab shows it. The owner disposes the cache after the last CustomPaint using one of its thumbnails is unmounted.
Constructors
- DiagramShapeThumbnailCache({required ShapeRegistry registry})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- registry → ShapeRegistry
-
The grammar the thumbnails resolve their shapes with.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepare(
Iterable< ShapeDefinition> definitions, {DiagramTheme theme = DiagramTheme.light}) → void -
Records thumbnails for
themeahead of first paint, for every definition not yet cached. -
thumbnail(
ShapeDefinition definition, {DiagramTheme theme = DiagramTheme.light}) → DiagramShapeThumbnail -
The thumbnail of
definitionas a canvas withthemepaints it, recorded on first use. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited