update static method
Update the stored view and media using the latest context.
Call this inside a top-level builder or a widget's lifecycle where
BuildContext is stable. This keeps values fresh across hot reloads,
navigation, and metric changes.
Implementation
static void update(BuildContext context) {
if (!_initialized) {
init(context);
return;
}
final FlutterView view = View.of(context);
_view = view;
_media = MediaQueryData.fromView(view);
}