Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e7f04b

Browse files
Add dispose to FutureProvider
1 parent3ee02e4 commit6e7f04b

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
requiredCreate<Future<T>?> create,
187187
requiredT 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)

[8]ページ先頭

©2009-2025 Movatter.jp