onInit method

  1. @override
void onInit()
override

Implementation

@override
void onInit() {
  node.init();
  controller.init();

  node.addListener(() {
    dispatcher.onFocusChange(node.hasFocus);
  });

  _keyboardUtilsListenerId = _keyboardUtils.add(
    listener: keyboard_listener.KeyboardListener(willShowKeyboard: (height) {
      dispatcher.onKeyboardWillShow(height.toInt());
    }, willHideKeyboard: () {
      dispatcher.onKeyboardWillHide();
    }),
  );
}