setup method

void setup()

Implementation

void setup() {
  __.in_('setup');
  try {
    // Only run setup once
    if (isSetupComplete) {
      __.info('NavigationService setup already complete, skipping');
      return;
    }

    isSetupComplete = true;
    __.info('Navigation service initialized with GoRouter');
  } catch (e, stackTrace) {
    // _router = (null as GoRouter);
    isSetupComplete = false;
    __.severe('Failed to initialize navigation service', e, stackTrace);
  } finally {
    isSetupComplete = true;

    __.out_('setup');
  }
}