onVisible property
Use:
ValueNotifier<bool> onVisible = ValueNotifier(false);
Future.delayed(Duration(seconds: 2), () {
// Change value
onVisible.value = true;
});
GrockVisibleOpacityAnimation(
onVisible: ValueNotifier(true),
child: child..
),
Implementation
final ValueNotifier<bool>? onVisible;