
from get_it1,461
Practical, opinionated guidance for using get_it (Dart/Flutter) — registration patterns, scopes, async init, retrieval, testing, and production best practices.
Provides an expert reference for using get_it as a service locator in Flutter/Dart apps. The skill explains registration types (singleton, lazy, factory, async), scope mechanics (push/pop, shadowing), recommended async initialization patterns (init() + registerSingletonAsync), retrieval APIs, testing patterns that use scoped mocking, and production anti-patterns. It includes code examples for common tasks and patterns developers will run into when wiring DI in real apps.
Use this skill while architecting or refactoring dependency registration in a Flutter app, when implementing async service initialization, when adding per-user scopes (session management), or when writing tests that need to shadow real services. It's especially helpful during app startup, testing setup/teardown, and debugging service lifecycle issues.
this.Inferred: developer-focused agents that can provide code examples and refactors (Copilot/Codex-style assistants, Claude Code, GPT-based coding assistants).
This skill has not been reviewed by our automated audit pipeline yet.