$borderAll method

Widget $borderAll({
  1. Color color = const Color(0xFF000000),
  2. double width = 1.0,
  3. BorderStyle style = BorderStyle.solid,
  4. double strokeAlign = BorderSide.strokeAlignInside,
  5. double radius = 0,
})

Implementation

Widget $borderAll({
  Color color = const Color(0xFF000000),
  double width = 1.0,
  BorderStyle style = BorderStyle.solid,
  double strokeAlign = BorderSide.strokeAlignInside,
  double radius = 0,
}) {
  return DecoratedBox(
    position: DecorationPosition.foreground,
    decoration: BoxDecoration(
      border: Border.all(color: color, width: width, style: style, strokeAlign: strokeAlign),
      borderRadius: BorderRadius.all(Radius.circular(radius)),
    ),
    child: this,
  );
}