CloseButton constructor

const CloseButton({
  1. Key? key,
  2. Color? color,
  3. VoidCallback? onPressed,
  4. ButtonStyle? style,
})

Creates a Material Design close icon button.

Implementation

const CloseButton({ super.key, super.color, super.onPressed, super.style })
    : super(
        icon: const CloseButtonIcon(),
        standardComponent: StandardComponentType.closeButton,
      );