only static method
Implementation
static BoxDecoration only(
BuildContext context, {
double? top,
double? bottom,
double? left,
double? right,
Color? color,
Color? borderColor,
double? borderRadius,
}) {
final _borderColor = borderColor ?? context.hintColor.dimmed;
return BoxDecoration(
color: color ?? context.backgroundColor,
borderRadius:
borderRadius == null ? null : BorderRadius.circular(borderRadius),
border: Border(
top: top != null
? BorderSide(width: top, color: _borderColor)
: BorderSide.none,
bottom: bottom != null
? BorderSide(width: bottom, color: _borderColor)
: BorderSide.none,
left: left != null
? BorderSide(width: left, color: _borderColor)
: BorderSide.none,
right: right != null
? BorderSide(width: right, color: _borderColor)
: BorderSide.none,
),
);
}