setPixelSelectMode constant

String const setPixelSelectMode

Turns pixel select mode on or off, like the widget inspector's select mode.

Parameters: enabled (true or false), and asset when enabling. While on, an overlay covers the app and takes its clicks and taps: hovering a DebugShader for the asset highlights the pixel under the pointer, and each click posts a ServiceEvents.pixelPicked event. It stays on until turned off, here or with the overlay's Done button, which posts ServiceEvents.pixelSelectMode.

Answers {"enabled": bool, "overlay": bool}. overlay is false when the app has no Overlay to show it in (no WidgetsApp or Navigator); clicks are then still reported, but also reach the app.

Implementation

static const String setPixelSelectMode = '$prefix.setPixelSelectMode';