mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Improve unsupported text (#27186)
This commit is contained in:
parent
64a1ce011a
commit
d5fd57cfbd
@ -508,7 +508,9 @@ abstract class ResidentRunner {
|
||||
bool get supportsRestart => false;
|
||||
|
||||
Future<OperationResult> restart({ bool fullRestart = false, bool pauseAfterRestart = false, String reason }) {
|
||||
throw 'unsupported';
|
||||
final String mode = isRunningProfile ? 'profile' :
|
||||
isRunningRelease ? 'release' : 'this';
|
||||
throw '${fullRestart ? 'Restart' : 'Reload'} is not supported in $mode mode';
|
||||
}
|
||||
|
||||
Future<void> stop() async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user