getLabel method

String getLabel(
  1. BuildContext context
)

Returns the label for the navigation entry

Implementation

String getLabel(BuildContext context) {
  switch (this) {
    case AppNavItem.fleet:
      return context.l10n.navHome;
    case AppNavItem.notifications:
      return context.l10n.navNotifications;
    case AppNavItem.profiles:
      return context.l10n.navProfile;
  }
}