getPath method

  1. @override
Path getPath(
  1. Size size
)
override

Implementation

@override
Path getPath(Size size) {
  return Path()
    ..addRRect(RRect.fromLTRBAndCorners(0, 0, size.width, size.height,
        topLeft: borderRadius.topLeft,
        topRight: borderRadius.topRight,
        bottomLeft: borderRadius.bottomLeft,
        bottomRight: borderRadius.bottomRight))
    ..close();
}