NmGraphNodeData class
A node in the tax graph.
Constructors
-
NmGraphNodeData({required String id, required NmGraphNodeType type, required String label, String? subtitle, Offset position = Offset.zero, Offset velocity = Offset.zero, bool isFixed = false, bool isSelected = false, bool isHighlighted = false, Map<
String, dynamic> metadata = const {}}) -
Creates a NmGraphNodeData.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Id.
final
- isFixed → bool
-
Is fixed.
final
- isHighlighted → bool
-
Is highlighted.
final
- isSelected → bool
-
Is selected.
final
- label → String
-
Label.
final
-
metadata
→ Map<
String, dynamic> -
Metadata.
final
- position → Offset
-
Position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
Node size based on type.
no setter
- subtitle → String?
-
Subtitle.
final
- type → NmGraphNodeType
-
Type.
final
- velocity → Offset
-
Velocity.
final
Methods
-
copyWith(
{String? id, NmGraphNodeType? type, String? label, String? subtitle, Offset? position, Offset? velocity, bool? isFixed, bool? isSelected, bool? isHighlighted, Map< String, dynamic> ? metadata}) → NmGraphNodeData - Copy with.
-
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