riverpod-overrides

Installation
SKILL.md

Riverpod — Provider overrides

Instructions

All providers can be overridden to change their behavior. Overrides are set on the container (ProviderScope in Flutter, ProviderContainer in Dart) via the overrides parameter. Use overrides for testing, debugging, different environments, or scoping (see riverpod-scoping).

Where to set overrides

  • Flutter: Pass overrides to ProviderScope (usually at the root or around a subtree).
  • Dart: Pass overrides to ProviderContainer.

Override methods

Each provider type exposes methods whose names start with overrideWith, for example:

  • overrideWith — Provide a new implementation (e.g. a function that returns a value or builds state).
  • overrideWithValue — Replace with a fixed value (e.g. for FutureProvider/StreamProvider).
  • overrideWithBuild — Custom build logic (e.g. for StreamProvider).
Related skills

More from serverpod/skills-registry

Installs
20
GitHub Stars
8
First Seen
Mar 20, 2026