Splash constructor

Splash(
  1. {Key key,
  2. @required GestureTapCallback onTap,
  3. @required Widget child,
  4. Color splashColor,
  5. double minRadius = defaultMinRadius,
  6. double maxRadius = defaultMaxRadius}
)

Creates a splash effect onTap, surrounding its child widget.

The child parameter can not be null. The tap is disabled if the onTap parameter is null.

Implementation

Splash({
  Key key,
  @required this.onTap,
  @required this.child,
  this.splashColor,
  this.minRadius = defaultMinRadius,
  this.maxRadius = defaultMaxRadius,
})  : assert(minRadius != null),
      assert(maxRadius != null),
      assert(minRadius > 0),
      assert(minRadius < maxRadius),
      super(key: key);