selectedNode property Null safety

Node? selectedNode

Get the current selected node. Returns null if there is no selectedKey

Implementation

Node? get selectedNode {
  return this.selectedKey!.isEmpty ? null : getNode(this.selectedKey!);
}