build method
Implementation
Widget? build() {
return child == null
? const NodeOverrideExecuter()
.executeChild(context, state, const SizedBox.shrink())
: _handleVisibility(context, state)
? NodeBuilder(
state: state.copyWith(node: child),
onHover: () {
context.read<TreeGlobalState>().onNodeHovered(
child!, context.read<TreeState>().deviceType);
},
onTap: () {
context.read<TreeGlobalState>().onNodeFocused(
child!, context.read<TreeState>().deviceType);
},
onPanStart: () {
context.read<TreeGlobalState>().onNodeFocused(
child!, context.read<TreeState>().deviceType);
},
child: const NodeOverrideExecuter().executeChild(
context,
state,
child!.toWidget(
context: context,
state: state.copyWith(node: child),
),
),
)
: null;
}