border method

Widget border(
  1. Border style
)

Applies a decoration to the widget with a Border.

Implementation

Widget border(Border style) {
  return DecoratedBox(
    decoration: BoxDecoration(border: style),
    child: this,
  );
}