MaterialIconLabel constructor

const MaterialIconLabel({
  1. Key? key,
  2. required String? label,
  3. required IconData? iconData,
  4. Color? color,
  5. double? minScreenWidthForTextBeforeScaling,
})

Implementation

const MaterialIconLabel({
  super.key,
  required this.label,
  required this.iconData,
  this.color,
  this.minScreenWidthForTextBeforeScaling,
}) : assert(
        label != null || iconData != null,
        'Either iconData or label must be specified.',
      );