PulsingBorder constructor
const
PulsingBorder({})
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,
});