getAllocationProfile method Null safety

Future<AllocationProfile> getAllocationProfile()

Implementation

Future<vm.AllocationProfile> getAllocationProfile() async {
  vm.VmService virtualMachine = await getVMService();
  return virtualMachine.getAllocationProfile(isolateId!, reset: true);
}