BarItem constructor

BarItem({
  1. String? label,
  2. String? image,
  3. IconData? iconData,
  4. Color? activeColor,
  5. Color? inactiveColor,
  6. BorderRadiusGeometry? borderRadius,
})

Creates an item that is used with AnimatedTextBar.items.

The argument iconData or image both cannot be null. Either image or iconData can be given, not both.

Implementation

BarItem({
  this.label,
  this.image,
  this.iconData,
  this.activeColor,
  this.inactiveColor,
  this.borderRadius,
})  : assert(image != null || iconData != null),
      assert(label != null);