SIGN IN SIGN UP

Remove `nullOk` in `MediaQuery.of` (#68736)

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.
G
Greg Spencer committed
55289324c6d1db9071fb372f9f15f5ad5a064eeb
Parent: 35a94f7
Committed by GitHub <noreply@github.com> on 10/28/2020, 2:56:41 PM