getPath method

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

Implementation

@override
Path getPath(Size size) {
  final middleHeight = size.height / 2;
  final middleWidth = size.width / 2;
  return Path()
    ..addOval(Rect.fromCircle(
        center: Offset(middleWidth, middleHeight),
        radius: min(middleHeight, middleWidth)))
    ..close();
}