DiagramPropertyVisibility class final

Which properties an inspector offers, by group or by key.

Every element has standard properties, such as its lock, transform, opacity, style and declared values, and extensions contribute more. Which of them a person should edit is the consumer's choice: a domain node may offer only its configuration, while a drawing shape offers everything. A ShapeDefinition declares it for its shapes and a host declares it for its inspector through DiagramProperties; a property is offered only when every applicable declaration shows it.

Visibility governs inspection only. Hidden properties still change through gestures and verbs, such as dragging a shape to move it.

Constructors

DiagramPropertyVisibility.all()
Every property.
const
DiagramPropertyVisibility.except({List<DiagramPropertyGroup> groups = const [], List<DiagramPropertyKey<Object?>> keys = const []})
Every property except those in groups and those named by keys.
const
DiagramPropertyVisibility.only({List<DiagramPropertyGroup> groups = const [], List<DiagramPropertyKey<Object?>> keys = const []})
Only the properties in groups and those named by keys.
const

Properties

groups → List<DiagramPropertyGroup>
The groups listed, matched by id.
final
hashCode → int
The hash code for this object.
no setterinherited
keys → List<DiagramPropertyKey<Object?>>
The properties listed, matched by key.
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
shows(DiagramProperty<Object?, Object?> property) → bool
Whether property is offered.
toString() → String
A string representation of this object.
inherited

Operators

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