Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
81b98450
Unverified
Commit
81b98450
authored
Mar 05, 2021
by
Jonah Williams
Committed by
GitHub
Mar 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] migrate async_guard.dart to null safety (#76748)
parent
9d53c11e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
async_guard.dart
packages/flutter_tools/lib/src/base/async_guard.dart
+1
-3
No files found.
packages/flutter_tools/lib/src/base/async_guard.dart
View file @
81b98450
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'dart:async'
;
/// Runs [fn] with special handling of asynchronous errors.
...
...
@@ -82,7 +80,7 @@ import 'dart:async';
/// [ArgumentError] will be thrown synchronously.
Future
<
T
>
asyncGuard
<
T
>(
Future
<
T
>
Function
()
fn
,
{
Function
onError
,
Function
?
onError
,
})
{
if
(
onError
!=
null
&&
onError
is
!
_UnaryOnError
<
T
>
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment