CustomIconText constructor

const CustomIconText({
  1. Key? key,
  2. required IconData icon,
  3. required String text,
  4. Color? color,
  5. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  6. TextStyle? textStyle,
  7. double? iconSize,
  8. double spacing = 8.0,
})

Creates a CustomIconText widget.

The icon and text parameters are required and must not be null. The mainAxisAlignment defaults to MainAxisAlignment.center. The spacing defaults to 8.0.

Implementation

const CustomIconText({
  super.key,
  required this.icon,
  required this.text,
  this.color,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.textStyle,
  this.iconSize,
  this.spacing = 8.0,
});