performHotReload method
This can throw an RPCError
.
Implementation
Future<void> performHotReload() async {
if (connectedApp?.isFlutterAppNow ?? false) {
await callServiceOnMainIsolate(hotReloadServiceName);
} else {
final serviceLocal = service;
await serviceLocal?.forEachIsolate((isolate) async {
await serviceLocal.reloadSources(isolate.id!);
});
}
}