handleRedirectFuture static method

Future handleRedirectFuture()

This method permits to handle scenarios in which after the policy is triggered the application is reloaded (e.g. web if redirect mode is selected).

This method should be called as soon as the application launches as some platforms (web) may erases the information state as soon as the Material app is started. A good place to call this method is the State.initState function of the main widget of the app.

Note:

  • This function must execute before the init function is called.

See also:

Implementation

static Future handleRedirectFuture() async {
  await _channel.invokeMethod('handleRedirectFuture');
}