PulsingBorder constructor

const PulsingBorder({
  1. Key? key,
  2. required Widget child,
  3. required Color color,
  4. required double borderRadius,
  5. double spreadRadius = 8,
  6. double blurRadius = 1,
  7. Duration pulseDuration = const Duration(milliseconds: 850),
  8. Duration pulseDelay = const Duration(milliseconds: 150),
  9. PulsingBorderController? controller,
})

Creates a new PulsingBorder.

The child parameter is the widget to be wrapped with the pulsing border.

The color parameter is the color of the pulsing border.

The borderRadius parameter is the radius of the pulsing border. It is recommended to keep the borderRadius value the same as the child widget's border radius.

The controller parameter is the controller for the pulsing border.

The spreadRadius parameter is the final spread radius of the pulsing border. Defaults to 8.

The blurRadius parameter is the final blur radius of the pulsing border. Defaults to 1.

Implementation

const PulsingBorder({
  super.key,
  required this.child,
  required this.color,
  required this.borderRadius,
  this.spreadRadius = 8,
  this.blurRadius = 1,
  this.pulseDuration = const Duration(milliseconds: 850),
  this.pulseDelay = const Duration(milliseconds: 150),
  this.controller,
});