isCurrentRoute static method

bool isCurrentRoute(
  1. String routeName
)

Check if the current route is routeName

Implementation

static bool isCurrentRoute(String routeName) =>
    getCurrentRouteName() == routeName;