Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of compilation warning #48

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

yanivshaked
Copy link
Contributor

This PR fixes the following issue:

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/screenshot-1.2.0/lib/screenshot.dart:45:31: Warning: Operand of null-aware operation '??' has type 'Duration' which excludes null.
 - 'Duration' is from 'dart:core'.
    return new Future.delayed(delay ?? Duration(milliseconds: 20), () async {
                              ^

This PR fixes the following issue:
```
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/screenshot-1.2.0/lib/screenshot.dart:45:31: Warning: Operand of null-aware operation '??' has type 'Duration' which excludes null.
 - 'Duration' is from 'dart:core'.
    return new Future.delayed(delay ?? Duration(milliseconds: 20), () async {
                              ^
```
@SachinGanesh SachinGanesh merged commit 0bd7fdf into SachinGanesh:master Jun 14, 2021
@SachinGanesh
Copy link
Owner

👍

@yanivshaked
Copy link
Contributor Author

Thank you for your quick action!

@yanivshaked yanivshaked mentioned this pull request Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants