PreviewSegmentCache class
Rendered preview segments of one editor, keyed by everything that changes a clip's pixels or sound. Editing one clip re-renders only that clip; undo finds the earlier segments still here.
Constructors
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
-
clear(
) → void - Forgets every segment (e.g. after the encoder changed).
-
dispose(
) → void -
lookup(
String key) → String? -
Path of the segment for
key, or null when it must be rendered. -
newListPath(
) → Future< String> -
newSegmentPath(
) → Future< String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prune(
Set< String> inUse) → void -
Deletes the oldest segments not in
inUseuntil at most maxSegments remain. -
store(
String key, String path) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- maxSegments → const int
- Most segments kept on disk (oldest unused ones are deleted first).