prepareExternalUrl method Null safety

  1. @override
String prepareExternalUrl(
  1. String internalUrl
)
override

Given a path that's internal to the app, create the external url that will be used in the browser.

Implementation

@override
String prepareExternalUrl(String internalUrl) {
  if (internalUrl.isNotEmpty && !internalUrl.startsWith('/')) {
    internalUrl = '/$internalUrl';
  }
  return '$_basePath$internalUrl';
}