box static method

BoxDecoration box({
  1. Color? borderColor,
  2. Color? fillColor,
  3. double borderRadius = 8,
  4. double? borderWidth = 1,
})

Implementation

static BoxDecoration box({
  Color? borderColor,
  Color? fillColor,
  double borderRadius = 8,
  double? borderWidth = 1,
}) {
  return BoxDecoration(
    color: fillColor ?? Get.theme.cardColor,
    border: Border.all(
      color: borderColor ?? Get.theme.hintColor.withAlpha(100),
      width: borderWidth ?? 1,
    ),
    borderRadius: BorderRadius.circular(borderRadius),
  );
}