getPath method

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

Implementation

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