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

Null-safety #38

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Null-safety #38

wants to merge 3 commits into from

Conversation

fareesh
Copy link

@fareesh fareesh commented Mar 4, 2021

No description provided.

Copy link

@awhitford awhitford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this compare to #39?

@required this.child,
}) : assert(child != null),
required this.child,
}) : assert(child != null),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assertions are no longer necessary since the types are not nullable now.

@@ -5,7 +5,7 @@ import 'package:modal_progress_hud/modal_progress_hud.dart';

void main() {
group('Modal Progress HUD', () {
Widget sut(bool inAsyncCall, Offset offset) {
Widget sut(bool inAsyncCall, Offset? offset) {
return MaterialApp(
home: new ModalProgressHUD(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new keyword is unnecessary now.

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