getMemoryUsage method Null safety

  1. @override
Future<MemoryUsage> getMemoryUsage(
  1. String isolateId
)
override

The getMemoryUsage RPC is used to lookup an isolate's memory usage statistics by its id.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

See Isolate.

This method will throw a SentinelException in the case a Sentinel is returned.

Implementation

@override
Future<MemoryUsage> getMemoryUsage(String isolateId) =>
    _call('getMemoryUsage', {'isolateId': isolateId});