OptionEmpty constructor

const OptionEmpty({
  1. Key? key,
  2. required String text,
  3. IconData? icon,
  4. TextStyle? textStyle,
  5. double iconSize = 48.0,
  6. Color? iconColor,
  7. double spacing = 16.0,
})

Creates an OptionEmpty widget.

  • text: The message to display.
  • icon: Optional icon to display above the text.
  • textStyle: Custom text style (uses default if null).
  • iconSize: Size of the icon.
  • iconColor: Color of the icon (uses theme primary color if null).
  • spacing: Spacing between icon and text.

Implementation

const OptionEmpty({
  super.key,
  required this.text,
  this.icon,
  this.textStyle,
  this.iconSize = 48.0,
  this.iconColor,
  this.spacing = 16.0,
});