Previews class

Previews — your @Previews, rendered in the embedded engine.

Wherever they are: the whole package is scanned, so a preview beside the widget it shows is found without being declared. PreviewsPackage.directory narrows that, and is the only reason to name a directory at all.

Inheritance

Constructors

Previews({List<PreviewsPackage> packages = const [], String? label})

Properties

config → Map<String, Object?>
Per-instance configuration, handed to the GUI-side implementation. Must be JSON-encodable — it crosses a process boundary.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable and globally unique — flutterware.scenarios, acme.deploy. The GUI resolves its native implementation by this string.
finalinherited
label → String
What the sidebar row says. Defaults to the last dotted segment of id.
finalinherited
packages → List<PreviewsPackage>
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
toJson() → Map<String, Object?>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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