watch method
Returns a StateNotifier which emits the latest value of this BelongsTo relationship.
Implementation
@override
DelayedStateNotifier<E?> watch() {
return _graphEvents.where((e) => e.isNotEmpty).map((e) {
return [DataGraphEventType.removeNode, DataGraphEventType.removeEdge]
.contains(e.last.type)
? null
: value;
});
}