setFlashTaskbarAppIcon static method
Flashes app icon on the taskbar. Generally used to draw user attention when something needs to be approved/rejected or fixed manually.
-
mode
determines how the taskbar app icon should be flashed. See TaskbarFlashMode for more details. -
flashCount
sets how many times the taskbar app icon should be flashed. -
timeout
sets the interval timeout between each flash. If passed as0
, it uses default cursor blink rate.
Implementation
static Future<void> setFlashTaskbarAppIcon({
int mode = TaskbarFlashMode.all | TaskbarFlashMode.timernofg,
int flashCount = 5,
Duration timeout = Duration.zero,
}) {
assert(flashCount <= 2147483647);
return _kChannel.invokeMethod(
_kSetFlashTaskbarAppIcon,
{
'mode': mode,
'flashCount': flashCount,
'timeout': timeout.inMilliseconds,
},
);
}