getIsolate method Null safety

Future<Isolate> getIsolate()

Implementation

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