IconButtonWidget constructor
const
IconButtonWidget({})
Creates an IconButtonWidget.
The onTap and icon parameters are required. The iconColor,
iconSize, and backgroundColor parameters are optional.
Implementation
const IconButtonWidget({
Key? key,
required this.onTap,
this.iconColor,
this.iconSize,
required this.icon,
this.backgroundColor,
this.padding = AppSpacing.medium,
}) : super(key: key);