Skip to content

Instantly share code, notes, and snippets.

@manas-raj-shrestha
Created December 31, 2020 18:35
Show Gist options
  • Save manas-raj-shrestha/01958b2dbd2fcf2ea065eec2d632aab0 to your computer and use it in GitHub Desktop.
Save manas-raj-shrestha/01958b2dbd2fcf2ea065eec2d632aab0 to your computer and use it in GitHub Desktop.
import 'package:get_it/get_it.dart';
import 'navigation_service.dart';
GetIt locator = GetIt.instance;
setupLocator() {
locator.registerLazySingleton<NavigationService>(() => NavigationService());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment