Prepare for adding values to AppLifecycleState (#119954)
Prepare for adding values to AppLifecycleState
This commit is contained in:
@@ -393,6 +393,11 @@ mixin SchedulerBinding on BindingBase {
|
||||
case AppLifecycleState.paused:
|
||||
case AppLifecycleState.detached:
|
||||
_setFramesEnabledState(false);
|
||||
// ignore: no_default_cases
|
||||
default:
|
||||
// TODO(gspencergoog): Remove this and replace with real cases once
|
||||
// engine change rolls into framework.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3245,6 +3245,12 @@ class ClipboardStatusNotifier extends ValueNotifier<ClipboardStatus> with Widget
|
||||
case AppLifecycleState.inactive:
|
||||
case AppLifecycleState.paused:
|
||||
// Nothing to do.
|
||||
break;
|
||||
// ignore: no_default_cases
|
||||
default:
|
||||
// TODO(gspencergoog): Remove this and replace with real cases once
|
||||
// engine change rolls into framework.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user