canInitializeHotReload method

Future<bool> canInitializeHotReload()

Whether this process has a VM service that can support hot reload.

Implementation

Future<bool> canInitializeHotReload() async {
  if (!_enableHotReload) return false;
  try {
    return (await dev.Service.getInfo()).serverUri != null;
  } catch (_) {
    return false;
  }
}