AdaptiveIconButton constructor

const AdaptiveIconButton({
  1. Key? key,
  2. required Icon icon,
  3. required void onPressed()?,
})

A widget that displays an IconButton based on the current platform.

Implementation

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