Skip to content

Commit 6e7f04b

Browse files
Add dispose to FutureProvider
1 parent 3ee02e4 commit 6e7f04b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/provider/lib/src/async_provider.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ class FutureProvider<T> extends DeferredInheritedProvider<Future<T>?, T> {
185185
Key? key,
186186
required Create<Future<T>?> create,
187187
required T initialData,
188+
Dispose<T>? dispose,
188189
ErrorBuilder<T>? catchError,
189190
UpdateShouldNotify<T>? updateShouldNotify,
190191
bool? lazy,
@@ -195,6 +196,7 @@ class FutureProvider<T> extends DeferredInheritedProvider<Future<T>?, T> {
195196
lazy: lazy,
196197
builder: builder,
197198
create: create,
199+
dispose: dispose,
198200
updateShouldNotify: updateShouldNotify,
199201
startListening: _futureStartListening(
200202
catchError: catchError,

0 commit comments

Comments
 (0)