DiagramProperties class final

Resolves which properties apply to a selection.

The built-in properties come first: the element's own properties (lock, transform, appearance), then those of its kind (shape style, geometry and values, connector routing and stroke, text). Contributed properties, from installed route and content providers, the text being inspected and sources, join the end of their group, or start their group after the group it names.

A locked subject offers only its lock, and a creation tool only the style of the shapes it will create.

A field is offered only when visibility and the ShapeDefinition.inspector of every shape it edits show it.

final properties = DiagramProperties(sources: [ownerProperties]);
final fields = properties.resolve(DiagramPropertyScope(controller));

Constructors

DiagramProperties({Iterable<DiagramPropertySource> sources = const [], DiagramPropertyVisibility visibility = const DiagramPropertyVisibility.all()})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources → List<DiagramPropertySource>
final
visibility → DiagramPropertyVisibility
The properties this host's inspector offers.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(DiagramPropertyScope scope) → List<DiagramPropertyField<Object?>>
The fields that apply to scope, in inspector order.
toString() → String
A string representation of this object.
inherited

Operators

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