DPButton constructor

const DPButton({
  1. Key? key,
  2. required VoidCallback onTap,
  3. BorderRadius radius = const BorderRadius.all(Radius.zero),
  4. Decoration decoration = const BoxDecoration(),
  5. required Widget child,
  6. bool isTapEffectEnabled = true,
})

Implementation

const DPButton({
  super.key,
  required this.onTap,
  this.radius = const BorderRadius.all(Radius.zero),
  this.decoration = const BoxDecoration(),
  required this.child,
  this.isTapEffectEnabled = true,
});