setup method

  1. @override
void setup()
override

Implementation

@override
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');
  }
}