forked from firka/flutter
Prepare Flutter for SDK changes to runZoned. (#52953)
The `runZoned` method deprecates the `onError` parameter. Invocations using that parameter must use `runZonedGuarded` instead. This prepares Flutter for the deprecation. The same places need to be migrated to using `runZonedGuarded` when the SDK change has been ported to Flutter. Then the deprecated member will be removed in a follow-up CL when the most important packages have been migrated.
This commit is contained in:
committed by
GitHub
parent
10571920c0
commit
af5194dbfd
@@ -117,7 +117,7 @@ Future<T> asyncGuard<T>(
|
||||
} catch (e, s) { // ignore: avoid_catches_without_on_clauses
|
||||
handleError(e, s);
|
||||
}
|
||||
}, onError: (Object e, StackTrace s) {
|
||||
}, onError: (Object e, StackTrace s) { // ignore: deprecated_member_use
|
||||
handleError(e, s);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user