IconButton constructor

const IconButton({
  1. Key? key,
  2. required Widget icon,
  3. VoidCallback? onPressed,
  4. VoidCallback? onLongPress,
  5. ButtonThemeData? style,
  6. IconThemeButtonStateBuilder? iconTheme,
  7. String? semanticLabel,
  8. FocusNode? focusNode,
  9. 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);