custom static method

BoxDecoration custom({
  1. Color? fillColor,
  2. double? topLeft,
  3. double? topRight,
  4. double? bottomLeft,
  5. double? bottomRight,
})

Implementation

static BoxDecoration custom({
  Color? fillColor,
  double? topLeft,
  double? topRight,
  double? bottomLeft,
  double? bottomRight,
}) {
  return BoxDecoration(
    color: fillColor ?? Get.theme.cardColor,
    borderRadius: BorderRadius.only(
      topLeft: Radius.circular(topLeft ?? 0),
      topRight: Radius.circular(topRight ?? 0),
      bottomLeft: Radius.circular(bottomLeft ?? 0),
      bottomRight: Radius.circular(bottomRight ?? 0),
    ),
  );
}