roundedOnly method

BoxDecoration roundedOnly({
  1. double topLeft = 0,
  2. double topRight = 0,
  3. double bottomLeft = 0,
  4. double bottomRight = 0,
})

Apply rounded corners only on specific corners

Implementation

BoxDecoration roundedOnly({
  double topLeft = 0,
  double topRight = 0,
  double bottomLeft = 0,
  double bottomRight = 0,
}) =>
    copyWith(
      borderRadius: BorderRadius.only(
        topLeft: Radius.circular(topLeft),
        topRight: Radius.circular(topRight),
        bottomLeft: Radius.circular(bottomLeft),
        bottomRight: Radius.circular(bottomRight),
      ),
    );