IconButtonWidget constructor

const IconButtonWidget({
  1. Key? key,
  2. required VoidCallback onTap,
  3. Color? iconColor,
  4. double? iconSize,
  5. required IconData icon,
  6. Color? backgroundColor,
  7. double padding = AppSpacing.medium,
})

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);