close method

void close(
  1. BuildContext context
)

Helper method to close the webview.

Implementation

void close(BuildContext context) {
  if (!hasPopped) {
    hasPopped = true;
    Navigator.pop(context);
  }
}