NetworkManagerBlocExtension extension

Extension on NetworkManager for Bloc-friendly helpers.

on

Methods

bindToEmit(void emit(NetworkState)) StreamSubscription<NetworkState>

Available on NetworkManager, provided by the NetworkManagerBlocExtension extension

Creates a StreamSubscription that maps NetworkState events into Bloc-compatible emit calls.
executeAndEmit<T>(Future<T> requestFn(), {required void emit(NetworkState), String? cacheKey, NetworkStrategy? strategy, Duration? cacheTtl}) Future<T?>

Available on NetworkManager, provided by the NetworkManagerBlocExtension extension

Execute a request and pipe NetworkState changes into emit.