ScaleButton constructor Null safety

const ScaleButton(
  1. {Key? key,
  2. Duration duration = const Duration(milliseconds: 300),
  3. double bound = 0.2,
  4. VoidCallback? onTap,
  5. bool reverse = false,
  6. required Widget child}
)

Implementation

const ScaleButton({
  Key? key,
  Duration duration = const Duration(milliseconds: 300),
  double bound = 0.2,
  VoidCallback? onTap,
  bool reverse = false,
  required Widget child,
})  : this.duration = duration,
      this.bound = bound,
      this.onTap = onTap,
      this.child = child,
      this.reverse = reverse,
      super(key: key);