currentLocation static method

String currentLocation(
  1. BuildContext context
)

Returns the current route URI string from the given context.

Example:

final url = BloomRouter.currentLocation(context);

Implementation

static String currentLocation(BuildContext context) {
  return GoRouterState.of(context).uri.toString();
}