routeToUri function

Uri? routeToUri(
  1. String route
)

Sets a string containing either a URL or route in URI format

Implementation

Uri? routeToUri(String route) => Uri.tryParse(
    route.startsWith(API.host) ? route : '${API.host}${API.apiVersion}$route');