dvHomeWidgetLaunchUrl function

String dvHomeWidgetLaunchUrl(
  1. String scheme,
  2. String route
)

The link a home widget's tap opens the application with.

scheme is the application's own URL scheme and route the route the widget was generated for. Both native halves write this: Android's provider puts it in the PendingIntent, and WidgetKit's view hands it to widgetURL. One rule, because the runtime reads it back with dvHomeWidgetRouteForLink and two spellings is a tap that opens the not-found page on one platform and the right page on the other.

Implementation

String dvHomeWidgetLaunchUrl(String scheme, String route) =>
    '$scheme://$dvHomeWidgetLaunchHost$route';