roundRect method

DecoratedBox roundRect({
  1. double radius = 4,
  2. Color? borderColor,
  3. double bordeWidth = 1.0,
  4. Color? fillColor,
  5. BoxShadow? shadow,
})

Implementation

DecoratedBox roundRect({double radius = 4, Color? borderColor, double bordeWidth = 1.0, Color? fillColor, BoxShadow? shadow}) {
  return this.boxDecorated(
    color: fillColor,
    boxShadow: shadow == null ? null : [shadow],
    borderRadius: BorderRadius.all(Radius.circular(radius)),
    border: borderColor != null ? Border.all(color: borderColor, width: bordeWidth) : null,
  );
}