| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| import 'ui/icons.dart'; |
| |
| class RegisteredServiceDescription { |
| const RegisteredServiceDescription._({ |
| this.service, |
| this.title, |
| this.icon, |
| }); |
| |
| final String service; |
| final String title; |
| final DevToolsIcon icon; |
| } |
| |
| /// Hot reload service registered by Flutter Tools. |
| /// |
| /// We call this service to perform hot reload. |
| const RegisteredServiceDescription hotReload = RegisteredServiceDescription._( |
| service: 'reloadSources', |
| title: 'Hot Reload', |
| icon: FlutterIcons.hotReloadWhite, |
| ); |
| |
| /// Hot restart service registered by Flutter Tools. |
| /// |
| /// We call this service to perform a hot restart. |
| const RegisteredServiceDescription hotRestart = RegisteredServiceDescription._( |
| service: 'hotRestart', |
| title: 'Hot Restart', |
| icon: FlutterIcons.hotRestartWhite, |
| ); |
| |
| /// Flutter version service registered by Flutter Tools. |
| /// |
| /// We call this service to get version information about the Flutter framework, |
| /// the Flutter engine, and the Dart sdk. |
| const RegisteredServiceDescription flutterVersion = |
| RegisteredServiceDescription._( |
| service: 'flutterVersion', |
| title: 'Flutter Version', |
| icon: FlutterIcons.flutter, |
| ); |
| |
| const flutterListViews = '_flutter.listViews'; |
| |
| const displayRefreshRate = '_flutter.getDisplayRefreshRate'; |