toExternal abstract method

void toExternal(
  1. String url, {
  2. bool openNewTab = false,
})

Goes to an url which is not in the app

On the web, you can set openNewTab to true to open this url in a new tab

Also see:

  • to if you don't need segment encoding
  • toSegments if you need your path segments to be encoded
  • toNamed if you want to navigate by name

Implementation

void toExternal(String url, {bool openNewTab = false});