DesignInventoryEntry class

A look's answer to one row: a live specimen (builder) or the reason the look leaves it out (absentReason).

DesignInventoryEntry.present('Link', (context) => const Text('Terms'))
Annotations

Constructors

DesignInventoryEntry(String row, {WidgetBuilder? builder, String? absentReason})
An entry for row (a DesignInventoryRow.id). Give exactly one of builder and absentReason; DesignInventory.verify fails otherwise.
const
DesignInventoryEntry.absent(String row, String absentReason)
row is deliberately absent, for absentReason ("a floating action button is Material vocabulary"; "not built yet" is not a reason).
const
DesignInventoryEntry.present(String row, WidgetBuilder builder)
row is present: builder makes a live specimen of it, in whatever class the look gives the component (the gallery frames it).
const

Properties

absentReason → String?
Why the look leaves the row out.
final
builder → WidgetBuilder?
Makes a live specimen of the row, in the look's own hand.
final
hashCode → int
The hash code for this object.
no setterinherited
isPresent → bool
Whether the look carries the row.
no setter
row → String
The row's id (DesignInventoryRow.id).
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