title property Null safety

String title

A title of a tab.

Implementation

String get title {
  switch (this) {
    case BottomNavigationTab.home:
      return S.current.home;
    case BottomNavigationTab.search:
      return S.current.search;
    case BottomNavigationTab.reels:
      return S.current.reels;
    case BottomNavigationTab.store:
      return S.current.store;
    case BottomNavigationTab.profile:
      return S.current.profile;
  }
}