temporarilyDisableStatusBarHiding method
- {required Future action(
Override the flag for automatically disabling the status bar. Necessary for some very specific edge cases and byproduct of letting global state run its course. This is a band-aid solution.
Implementation
Future<void> temporarilyDisableStatusBarHiding(
{required Future Function() action}) async {
_shouldHideStatusBarWhenInMedia = false;
await action.call();
_shouldHideStatusBarWhenInMedia = true;
}