Prevent calls to view.uiIsolate.flutterExit on devices which do not support it (#26201)

diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart
index 3c6d378..b7e9666 100644
--- a/packages/flutter_tools/lib/src/device.dart
+++ b/packages/flutter_tools/lib/src/device.dart
@@ -184,6 +184,7 @@
 }
 
 abstract class Device {
+
   Device(this.id);
 
   final String id;
@@ -276,11 +277,17 @@
   /// Whether this device implements support for hot restart.
   bool get supportsHotRestart => true;
 
+  /// Whether flutter applications running on this device can be terminated
+  /// from the vmservice.
+  bool get supportsStopApp => true;
+
+  /// Whether the device supports taking screenshots of a running flutter
+  /// application.
+  bool get supportsScreenshot => false;
+
   /// Stop an app package on the current device.
   Future<bool> stopApp(ApplicationPackage app);
 
-  bool get supportsScreenshot => false;
-
   Future<void> takeScreenshot(File outputFile) => Future<void>.error('unimplemented');
 
   @override