GKWidget constructor
const
GKWidget({})
Creates a GKWidget.
effect is the visual effect to render.
trigger controls when the animation starts (defaults to GKTrigger.auto).
interactive enables pointer tracking when true.
child is an optional widget rendered beneath the effect.
controller allows supplying an external controller; if null, one is
created internally.
duration sets the animation duration (defaults to 2 seconds).
Implementation
const GKWidget({
super.key,
required this.effect,
this.trigger = GKTrigger.auto,
this.interactive = false,
this.child,
this.controller,
this.duration = const Duration(seconds: 2),
});