IconButton constructor
const
IconButton({
- Key? key,
- required Widget icon,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ButtonThemeData? style,
- IconThemeButtonStateBuilder? iconTheme,
- String? semanticLabel,
- FocusNode? focusNode,
- bool autofocus = false,
Implementation
const IconButton({
Key? key,
required this.icon,
this.onPressed,
this.onLongPress,
this.style,
this.iconTheme,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : super(key: key);