MaterialIconLabel constructor

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

Implementation

const MaterialIconLabel({
  super.key,
  required this.label,
  this.iconData,
  this.iconAsset,
  this.iconSize,
  this.color,
  this.minScreenWidthForTextBeforeScaling,
})  : assert(
        label != null || iconData != null || iconAsset != null,
        'At least one of iconData, iconAsset, or label must be specified.',
      ),
      assert(
        iconData == null || iconAsset == null,
        'Only one of iconData and iconAsset may be specified.',
      );