Skip to content

Instantly share code, notes, and snippets.

@FlutterWiz
Created January 7, 2023 15:38
Show Gist options
  • Save FlutterWiz/1b536141443f98f5e6dd807672f12c8c to your computer and use it in GitHub Desktop.
Save FlutterWiz/1b536141443f98f5e6dd807672f12c8c to your computer and use it in GitHub Desktop.
@module
abstract class InjectableModule {
@singleton
Connectivity get connectivity => Connectivity();
@singleton
AppRouter get appRouter => AppRouter();
@lazySingleton
FirebaseAuth get firebaseAuth => FirebaseAuth.instance;
@lazySingleton
FirebaseFirestore get firestore => FirebaseFirestore.instance;
@lazySingleton
FirebaseStorage get firebaseStorage => FirebaseStorage.instance;
@singleton
StreamChatClient get streamChatClient => StreamChatClient(getstreamApiKey, logLevel: Level.INFO);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment