initState method

void initState({
  1. required BuildContext buildContext,
})

Implementation

void initState({
  required BuildContext buildContext,
}) {
  if (!initStateCalled) {
    initStateCalled = true;

    _subscription =
        _flutterPluginQPos.onPosListenerCalled!.listen((QPOSModel data) {
      parasListener(
        datas: data,
        thisContext: buildContext,
      );
      notifyListeners();
    });
  }
}