build method
Build the Widget. Instead of overriding this function, override buildChild so that all gesture detectors can be set up automatically.
Implementation
@override
Widget build(BuildContext context) {
return ClipRect(
clipBehavior: widget.clipBehavior,
child: super.build(context),
);
}