nullableViewInsets property
EdgeInsets?
nullableViewInsets
Returns the view insets for the nearest MediaQuery ancestor or throws an exception if no such ancestor exists.
Implementation
EdgeInsets? get nullableViewInsets => MediaQuery.maybeViewInsetsOf(this);