border method

Container border({
  1. double topLeft = 10.0,
  2. double topRight = 10.0,
  3. double bottomLeft = 10.0,
  4. double bottomRight = 10.0,
})

Implementation

Container border(
        {double topLeft: 10.0,
        double topRight: 10.0,
        double bottomLeft: 10.0,
        double bottomRight: 10.0}) =>
    Container(
      decoration: BoxDecoration(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(topLeft),
          topRight: Radius.circular(topRight),
          bottomLeft: Radius.circular(bottomLeft),
          bottomRight: Radius.circular(bottomRight),
        ),
      ),
      child: this,
    );