SmartBorder constructor

SmartBorder({
  1. SmartBorderWidth width = SmartBorderWidth.thin,
  2. Color color = Colors.black,
})

Implementation

SmartBorder({SmartBorderWidth width = SmartBorderWidth.thin, Color color = Colors.black})
    : border = width == SmartBorderWidth.none ? Border.all() : Border.all(width: width.value, color: color);