FancyBottomBar constructor

FancyBottomBar({
  1. List<FancyItem>? items,
  2. dynamic selectedIndex,
  3. @required ValueChanged<int>? onItemSelected,
  4. FancyType? type,
})

Implementation

FancyBottomBar({
  this.items,
  this.selectedIndex,
  @required this.onItemSelected,
  this.type,
}) {
  assert(items != null);
  assert(items!.length >= 2 && items!.length <= 4);
  assert(onItemSelected != null);
}