DiagramOptions class final
The diagram-wide state that is neither document content nor history: the options of every installed extension, keyed by each options value's Dart type, and the live parts of the diagram's configuration (its bounds, fonts and default font family).
Constructors
-
DiagramOptions(Map<
Type, Object> values, {CanvasBounds bounds = CanvasBounds.infinite, DiagramFontChoices fonts = const DiagramFontChoices.empty(), String? defaultFontFamily})
Properties
- bounds → CanvasBounds
-
final
- defaultFontFamily → String?
-
final
- fonts → DiagramFontChoices
-
final
- grid → GridOptions
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snaps → DiagramSnapSettings
-
The installed editing snaps, or the engine's defaults.
no setter
-
values
→ Map<
Type, Object> -
final
Methods
-
copyWith(
{CanvasBounds? bounds, DiagramFontChoices? fonts, Object? defaultFontFamily = _unset}) → DiagramOptions - A copy with the given configuration values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of<
T extends Object> () → T? -
The installed options of type
T, or null. -
toString(
) → String -
A string representation of this object.
inherited
-
withValue(
Object value) → DiagramOptions -
A copy with
valuereplacing the options of its type.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- empty → const DiagramOptions