onAttach method

  1. @override
void onAttach()
override

Called when this component is added to a node.

Implementation

@override
void onAttach() {
  controller.addListener(_onCapture);
}