get method

dynamic get(
  1. String title, {
  2. IconData? icon,
  3. String? asset,
  4. int? i,
  5. int? pos,
  6. Color? colorActive,
})

Implementation

get(String title, {IconData? icon, String? asset, int? i, int? pos,Color? colorActive}) {
  // TODO: implement build
  return BottomNavigationBarItem(
    icon: icon != null
        ? Icon(
      icon,
      color: pos == i ? colorActive != null ? colorActive :  Config.colorPrimary : Colors.grey,
      size: 30,
    )
        : Container(
        height: 30,
        width: 40,
        child: Image.asset(
          asset!,
          color: pos == i ? colorActive != null ? colorActive : Config.colorPrimary : Colors.grey,
          height: 40,
          width: 40,
        )),
  );
}