CustomIconButton constructor

const CustomIconButton({
  1. Key? key,
  2. required String iconName,
  3. Size iconSize = const Size(PlayerStyles.commonIconSize, PlayerStyles.commonIconSize),
  4. EdgeInsets margin = const EdgeInsets.symmetric(horizontal: 0),
  5. VoidCallback? onPressed,
})

Implementation

const CustomIconButton({
  super.key,
  required this.iconName,
  this.iconSize = const Size(
    PlayerStyles.commonIconSize,
    PlayerStyles.commonIconSize,
  ),
  this.margin = const EdgeInsets.symmetric(
    horizontal: 0,
  ),
  this.onPressed,
});