RectClip.fromLTWH constructor

RectClip.fromLTWH(
  1. double left,
  2. double top,
  3. double width,
  4. double height, {
  5. Key? key,
  6. required Widget child,
  7. Clip clipBehavior = Clip.antiAlias,
  8. double? cornerRadius,
})

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,
  );
}