IconButton constructor
const
IconButton({
- Key? key,
- VoidCallback? onPressed,
- VoidCallback? onReleased,
- VoidCallback? onLongPress,
- Intent? intent,
- ShortcutActivator? shortcutActivator,
- BuildContext? targetContext,
- ButtonType type = ButtonType.momentary,
- ExtendedButtonStyle? style,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- String? tooltip,
- ButtonController? controller,
- required Widget child,
Implementation
const IconButton({
Key? key,
VoidCallback? onPressed,
VoidCallback? onReleased,
VoidCallback? onLongPress,
Intent? intent,
ShortcutActivator? shortcutActivator,
BuildContext? targetContext,
ButtonType type = ButtonType.momentary,
ExtendedButtonStyle? style,
Clip clipBehavior = Clip.none,
FocusNode? focusNode,
bool autofocus = false,
String? tooltip,
ButtonController? controller,
required Widget child
}) : super(
key: key,
onPressed: onPressed,
onReleased: onReleased,
onLongPress: onLongPress,
intent: intent,
shortcutActivator: shortcutActivator,
targetContext: targetContext,
type: type,
style: style,
focusNode: focusNode,
autofocus: autofocus,
clipBehavior: clipBehavior,
tooltip: tooltip,
controller: controller,
child: child,
);