NesPulser constructor

NesPulser({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 200),
  4. Curve curve = Curves.easeIn,
  5. double pulseScale = 1.1,
  6. Duration interval = const Duration(milliseconds: 250),
})

A widget that pulses its child.

Implementation

NesPulser({
  super.key,
  required this.child,
  this.duration = const Duration(milliseconds: 200),
  this.curve = Curves.easeIn,
  this.pulseScale = 1.1,
  Duration interval = const Duration(milliseconds: 250),
}) : super(
        state: PhasedState<bool>(
          values: [true, false],
          ticker: interval,
        ),
      );