UiBordered constructor

const UiBordered({
  1. Key? key,
  2. BoxBorder? border,
  3. Gradient? gradient,
  4. Color color = const Color(0xFF000000),
  5. double width = 0.0,
  6. BorderStyle style = BorderStyle.solid,
  7. double strokeAlign = BorderSide.strokeAlignInside,
  8. BorderRadiusGeometry? borderRadius,
  9. double depth = 1.0,
  10. double radius = 0.0,
  11. BoxShape shape = BoxShape.rectangle,
  12. Clip clipBehavior = Clip.antiAlias,
  13. double elevation = 0.0,
  14. Color shadowColor = const Color(0xFF000000),
  15. Duration? duration,
  16. Curve? curve,
  17. VoidCallback? onEnd,
  18. Widget? child,
})

UiWidget for Bordered, or AnimatedBordered if duration is present.

Implementation

const UiBordered({
  super.key,
  // border.
  this.border,
  this.gradient,
  this.color = const Color(0xFF000000),
  this.width = 0.0,
  this.style = BorderStyle.solid,
  this.strokeAlign = BorderSide.strokeAlignInside, // -1.0

  // clip.
  this.borderRadius,
  this.depth = 1.0,
  this.radius = 0.0,
  this.shape = BoxShape.rectangle,
  this.clipBehavior = Clip.antiAlias,

  // shadow.
  this.elevation = 0.0,
  this.shadowColor = const Color(0xFF000000),

  // ui.
  super.duration,
  super.curve,
  super.onEnd,
  super.child,
});