InspectorOverlayLayer constructor
InspectorOverlayLayer({
- required Rect overlayRect,
Creates a layer that displays the inspector overlay.
Implementation
InspectorOverlayLayer({required this.overlayRect}) {
bool inDebugMode = kDebugMode || kProfileMode;
if (inDebugMode == false) {
throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary('The inspector should never be used in production mode due to the '
'negative performance impact.'),
]);
}
}