operator == method
Implementation
// TODO: Discuss why not simply leveraging the type system to only allow
// [Node] instances as [other]?
@override
bool operator ==(Object other) {
if (other is Node) {
return data == other.data;
}
return false;
}