onVisible property

ValueNotifier<bool>? onVisible
final

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;