sRecPathProvider static method

Path sRecPathProvider(
  1. Size size,
  2. double progress
)

Implementation

static Path sRecPathProvider(Size size, double progress) {
  double top = size.height * (1 - progress);
  return Path()
    ..moveTo(0, top)
    ..lineTo(size.width, top)
    ..lineTo(size.width, size.height)
    ..lineTo(0, size.height)
    ..close();
}