createScreenPath method

Path createScreenPath(
  1. Size screenSize
)

Implementation

Path createScreenPath(Size screenSize) {
  final rect = Offset(
        innerBodyInsets.left + screenInsets.left,
        innerBodyInsets.top + screenInsets.top,
      ) &
      screenSize;
  final result = Path();
  result.addRRect(RRect.fromRectAndRadius(rect, screenRadius));
  return result;
}