PreviewEntry class

One preview, as the generated harness hands it over.

build is a thunk rather than a widget because a preview is built inside the test body: the annotation's wrapper runs there, under the canvas the entry is judged on, and a widget built at table-construction time would have been built under whatever the previous entry left behind.

Constructors

PreviewEntry({required String id, required String path, required String name, required Widget build()})
const

Properties

build → Widget Function()
The entry with its wrapper already applied — the generator owns that, because only the generated file can name the annotation.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
What the tool calls this entry — demo/tile.dart#tileEmpty.
final
name → String
final
path → String
Package-relative and /-separated, which is the coordinate space canvasFor matches against.
final
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