RectClip.fromLTWH constructor
RectClip.fromLTWH(})
Creates a rectangular clip from position and size.
Implementation
factory RectClip.fromLTWH(
double left,
double top,
double width,
double height, {
Key? key,
required Widget child,
Clip clipBehavior = Clip.antiAlias,
double? cornerRadius,
}) {
return RectClip(
key: key,
rect: Rect.fromLTWH(left, top, width, height),
child: child,
clipBehavior: clipBehavior,
cornerRadius: cornerRadius,
);
}