PreviewEntry class

Constructors

PreviewEntry({required String id, required String importUri, required String expr, required String kind, String? name, String? annoCode, bool isMulti = false, String? note, String? className})

Properties

annoCode String?
The annotation re-instantiation, with {{<library uri>}} markers before every identifier the generator must import, e.g. {{package:flutter/widget_previews.dart}}Preview(name: 'x', wrapper: {{package:app/ui/x.dart}}cardWrapper). null on bare/missing entries and when rewriting was impossible (see note) — the entry then mounts with no fields applied.
final
className String?
For 'missing' obligations: the widget class name.
final
expr String
The construction expression, without import prefix ('' for missing).
final
hashCode int
The hash code for this object.
no setterinherited
id String
Stable id: <lib-relative path>::<expression>[#n].
final
importUri String
final
isMulti bool
MultiPreview subclasses produce a LIST from transform().
final
kind String
final
name String?
@Preview(name:) when constant — test description sugar.
final
note String?
Human-facing discovery caveat.
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.
override

Operators

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