FancyIcon constructor

const FancyIcon({
  1. Widget? child,
  2. IconData? icon,
  3. IconSize size = IconSize.lg,
  4. String? color,
  5. String? backgroundColor,
  6. double padding = 12,
  7. bool round = true,
  8. Key? key,
})

Implementation

const FancyIcon({
  this.child,
  this.icon,
  this.size = IconSize.lg,
  this.color,
  this.backgroundColor,
  this.padding = 12,
  this.round = true,
  super.key,
}) : assert(child != null || icon != null);