• Greg Spencer's avatar
    Remove `nullOk` in `MediaQuery.of` (#68736) · 55289324
    Greg Spencer authored
    Adds MediaQuery.maybeOf to replace calling MediaQuery.of(context, nullOk: true), and removes the nullOk parameter. Also changes MediaQuery.of to return a non-nullable value, and removes many instances of the ! operator, reducing the possible places where a null dereference could occur.
    55289324
Name
Last commit
Last update
..
android Loading commit data...
ios Loading commit data...
lib Loading commit data...
raw Loading commit data...
rendering Loading commit data...
services Loading commit data...
test Loading commit data...
widgets Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
pubspec.yaml Loading commit data...