box static method

dynamic box({
  1. Color? colorBackground = Colors.transparent,
  2. Color? colorLine,
})

Implementation

static box({
  Color? colorBackground = Colors.transparent,
  Color? colorLine ,}) {

  //set default
  colorBackground ??= DSColor.cardview_background_color  ;
  colorLine ??= DSColor.cardview_boarderLine  ;

  var box = BoxDecoration(
      border: Border.all(color: colorLine ) ,
      color: colorBackground
  );
  return box;
}