startTrackingHeapObjects method Null safety

Future<void> startTrackingHeapObjects(
  1. {bool? trackAllocations}
)

Implementation

Future<void> startTrackingHeapObjects({bool? trackAllocations}) async {
  await _client.send('HeapProfiler.startTrackingHeapObjects', {
    if (trackAllocations != null) 'trackAllocations': trackAllocations,
  });
}