Remove the `nullOk` parameter from `Navigator.of` and add `Navigator.maybeOf` (#70726)
Adds Navigator.maybeOf to replace calling Navigator.of(context, nullOk: true), and removes the nullOk parameter. Also changes Navigator.of to return a non-nullable value, and removes many (120!) instances of the ! operator, reducing the possible places where a null dereference could occur.
Showing
Please register or sign in to comment