bound_mutation 2.2.0 copy "bound_mutation: ^2.2.0" to clipboard
bound_mutation: ^2.2.0 copied to clipboard

A small wrapper class around Riverpod Mutations to bind a function to a mutation.

2.2.0 #

  • Adds cascade to BoundMutation and BoundAction — runs the bound callback inside an existing MutationTransaction, leaving the mutation's own state untouched
  • Documents the public API
  • Adds a runnable pure Dart example in example/main.dart
  • Breaking: the cb field is now private (_cb). Use run to execute the mutation or cascade to reuse its callback inside another mutation

2.1.0 #

  • Adds BoundAction<ResultT> — a mutation without input
  • BoundMutation<ResultT, InputR> keeps its required input; both share the same ProviderListenable<MutationState<ResultT>> integration

2.0.0 #

  • migrate to CustomProviderListenable/SyncProviderTransformer2, replacing the SyncProviderTransformerMixin, ProviderTransformer and ProviderTransformerContext APIs deprecated in riverpod 3.4.0
  • Breaking: requires riverpod ^3.4.0 (was ^3.0.0)
  • Breaking: requires Dart SDK ^3.12.0 (was ^3.8.0), as mandated by riverpod 3.4.0

BoundMutation still implements ProviderListenable<MutationState<ResultT>>, so ref.watch, container.listen, run and reset are unchanged.

1.0.3 #

  • remove flutter dependency

1.0.2 #

  • switch to riverpod from flutter_riverpod

1.0.1 #

  • relax dependencies

1.0.0 #

  • Inital release
    • Adds BoundMutation
2
likes
160
points
1.19k
downloads

Documentation

API reference

Publisher

verified publisherfirebon.de

Weekly Downloads

A small wrapper class around Riverpod Mutations to bind a function to a mutation.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

meta, riverpod

More

Packages that depend on bound_mutation