reloadSources method
The reloadSources
RPC is used to perform a hot reload of the sources of
all isolates in the same isolate group as the isolate specified by
isolateId
.
If the force
parameter is provided, it indicates that all sources should
be reloaded regardless of modification time.
The pause
parameter has been deprecated, so providing it no longer has
any effect.
If the rootLibUri
parameter is provided, it indicates the new uri to the
isolate group's root library.
If the packagesUri
parameter is provided, it indicates the new uri to
the isolate group's package map (.packages) file.
If isolateId
refers to an isolate which has exited, then the Collected
Sentinel is returned.
This method will throw a SentinelException in the case a Sentinel is returned.
Implementation
Future<ReloadReport> reloadSources(
String isolateId, {
bool? force,
bool? pause,
String? rootLibUri,
String? packagesUri,
}) =>
_call('reloadSources', {
'isolateId': isolateId,
if (force != null) 'force': force,
if (pause != null) 'pause': pause,
if (rootLibUri != null) 'rootLibUri': rootLibUri,
if (packagesUri != null) 'packagesUri': packagesUri,
});