mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
According to previous discussion at https://github.com/flutter/flutter/pull/145389#discussion_r1561564845, this change makes `_ModalScopeStatus` an `InheritedModel` rather than an `InheritedWidget`, and provides the following methods. - `isCurrentOf` - `canPopOf` - `settingsOf` For example, `ModalRoute.of(context)!.settings` could become `ModalRoute.settingsOf(context)` as a performance optimization.