PlayerButton constructor

const PlayerButton({
  1. Key? key,
  2. double size = 40,
  3. String? iconPath,
  4. required VoidCallback onPressed,
  5. bool circle = true,
  6. Color backgroundColor = Colors.white54,
  7. Color iconColor = Colors.black,
  8. Widget? customIcon,
})

Implementation

const PlayerButton({
  Key? key,
  this.size = 40,
  this.iconPath,
  required this.onPressed,
  this.circle = true,
  this.backgroundColor = Colors.white54,
  this.iconColor = Colors.black,
  this.customIcon,
}) : super(key: key);