-
Notifications
You must be signed in to change notification settings - Fork 71
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
base: master
Are you sure you want to change the base?
Null-safety #38
Conversation
There was a problem hiding this 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), |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
No description provided.