onNotifyActivator method
Implementation
void onNotifyActivator(
dynamic data, {
bool recheck = false,
VoidCallback? callback,
}) async {
if (onActivator != null) {
onNotifyWithCallback(() => indicatorVisible = true);
bool value = await onActivator!(recheck, data);
onNotifyWithCallback(() {
activated = value;
indicatorVisible = false;
});
} else {
if (callback != null) callback();
}
}