getMemoryUsage method Null safety

Future<MemoryUsage> getMemoryUsage()

Implementation

Future<vm.MemoryUsage> getMemoryUsage() async {
  vm.VmService virtualMachine = await getVMService();
  return virtualMachine.getMemoryUsage(isolateId!);
}