showPerformanceOverlay method

Future<Response> showPerformanceOverlay(
  1. String isolateId, {
  2. bool? enabled,
})

Toggles the performance overlay.

Implementation

Future<Response> showPerformanceOverlay(String isolateId,
    {bool? enabled}) async {
  return await vmService.callServiceExtension(
    'ext.flutter.showPerformanceOverlay',
    isolateId: isolateId,
    args: {'enabled': enabled?.toString()},
  );
}