DesignInventory class

A look's inventory: one entry per DesignInventoryRow.

const DesignInventory(look: 'Comic', entries: [DesignInventoryEntry.absent('FloatingActionButton', 'A floating action button is Material vocabulary')])
Annotations

Constructors

DesignInventory({required String look, required List<DesignInventoryEntry> entries})
The inventory of look.
const

Properties

absentCount → int
How many rows the look leaves out with a reason.
no setter
entries → List<DesignInventoryEntry>
One entry per row, in any order.
final
hashCode → int
The hash code for this object.
no setterinherited
look → String
The look's display name.
final
presentCount → int
How many rows the look carries live.
no setter
problems → List<String>
Every way the inventory answers the rows wrong, one line each: an unknown row id, a row answered twice, a row not answered, an entry with neither a specimen nor a reason (or both), and a reason that is a to-do ("not built yet").
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

entryFor(String id) → DesignInventoryEntry?
The entry for the row id, or null when the inventory has none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
verify() → void
Throws a DesignInventoryError naming every problems line; a look's test calls it.

Operators

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

Static Methods

absentLabel(String reason) → String
What a gap reads as in a gallery.