trpc_flutter library
Flutter integration for trpc_dart: provides a ValueListenable bridge over cache-backed queries for ValueListenableBuilder, Riverpod, BLoC, and Provider.
Classes
-
RpcSubscriptionController<
T> - Binds a subscription stream to a ValueListenable of RpcSubscriptionState for ValueListenableBuilder.
-
RpcSubscriptionState<
T> - Immutable snapshot of a subscription's UI-facing state.
Enums
- RpcSubscriptionStatus
- Lifecycle of a real-time subscription UI binding.
Extensions
-
RpcQueryRefFlutter
on RpcQueryRef<
T> - Bridges a cache-backed query ref to Flutter's native ValueListenable. The listenable updates on data, error, loading, invalidation-triggered refetches, and explicit cache writes.
-
RpcWatchableFlutter
on RpcWatchable<
TInput, TOutput> -
api.user.getById.listenable(input)ergonomics for generated procedures. -
RpcWatchableNoInputFlutter
on RpcWatchableNoInput<
TOutput> -
No-input ergonomics:
api.user.me.listenable().