SplashButton constructor

const SplashButton({
  1. Key? key,
  2. required void onTap(),
  3. required Widget child,
  4. Color color = Colors.blue,
  5. EdgeInsetsGeometry? padding,
  6. BorderRadius? borderRadius,
  7. List<BoxShadow>? boxShadow,
  8. BoxShape shape = BoxShape.rectangle,
})

Implementation

const SplashButton({
  Key? key,
  required this.onTap,
  required this.child,
  this.color = Colors.blue,
  EdgeInsetsGeometry? padding,
  BorderRadius? borderRadius,
  this.boxShadow,
  this.shape = BoxShape.rectangle,
})  : padding = padding ?? const EdgeInsets.all(20.0),
      borderRadius =
          borderRadius ?? const BorderRadius.all(Radius.circular(20.0)),
      super(key: key);