FluidNavBarIcon constructor

FluidNavBarIcon({
  1. String? iconPath,
  2. String? svgPath,
  3. IconData? icon,
  4. Color? selectedForegroundColor,
  5. Color? unselectedForegroundColor,
  6. Color? backgroundColor,
  7. Map<String, dynamic>? extras,
})

Implementation

FluidNavBarIcon({
  this.iconPath,
  this.svgPath,
  this.icon,
  this.selectedForegroundColor,
  this.unselectedForegroundColor,
  this.backgroundColor,
  this.extras,
})  : assert(iconPath == null || svgPath == null || icon == null, 'Cannot provide both an svgPath and an icon.'),
      assert(iconPath != null || svgPath != null || icon != null, 'An svgPath or an icon must be provided.');