UiBordered constructor
const
UiBordered({
- Key? key,
- BoxBorder? border,
- Gradient? gradient,
- Color color = const Color(0xFF000000),
- double width = 0.0,
- BorderStyle style = BorderStyle.solid,
- double strokeAlign = BorderSide.strokeAlignInside,
- BorderRadiusGeometry? borderRadius,
- double depth = 1.0,
- double radius = 0.0,
- BoxShape shape = BoxShape.rectangle,
- Clip clipBehavior = Clip.antiAlias,
- double elevation = 0.0,
- Color shadowColor = const Color(0xFF000000),
- Duration? duration,
- Curve? curve,
- VoidCallback? onEnd,
- 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,
});