AppIconButton constructor Null safety

const AppIconButton(
  1. {Key? key,
  2. VoidCallback? onPressed,
  3. required IconData icon}
)

Creates an icon button.

Implementation

const AppIconButton({
  Key? key,
  this.onPressed,
  required this.icon,
}) : super(key: key);