PluginReport class
Everything a plugin says about itself right now — all of it data.
A native plugin draws a real Flutter widget for humans, but it emits one of
these too, so the shell, fw, a file projection and an agent all read the
same thing. Nothing
here may become a widget, a Color, or a closure: the moment it does, every
non-GUI renderer loses that capability permanently.
Constructors
-
PluginReport({required String id, required String label, String? description, Status status = Status.none, StatusBadge badge = StatusBadge.none, List<
PluginAction> actions = const [], List<TeardownStep> teardown = const [], List<Guard> guards = const [], List<PluginChild> children = const [], PluginView view = PluginView.empty}) -
const
Properties
-
actions
→ List<
PluginAction> -
final
- badge → StatusBadge
-
final
-
children
→ List<
PluginChild> -
Sub-entries — one per package for a package-scoped plugin. The sidebar
collapses to status and expands to these.
final
- description → String?
-
One sentence saying what this kind of plugin is for, or null.
final
-
guards
→ List<
Guard> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- label → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → Status
-
final
-
teardown
→ List<
TeardownStep> -
final
- view → PluginView
-
What the panel is currently showing.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool includeActions = true, bool includeView = true, int? viewRows}) → Map< String, Object?> -
includeActionsis off for a renderer whose caller has another way to read the declarations, and for whom carrying them is not free. It covers description too, which is a declaration in the same sense — one static sentence, the same on every project and in every reply. -
toString(
) → String -
A string representation of this object.
override
-
toText(
{bool includeView = true}) → String -
The whole plugin as plain text — the shape
fwprints and an agent reads.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited