throwIfAlreadyOpened method

void throwIfAlreadyOpened({
  1. String message = '',
})
inherited

Implementation

void throwIfAlreadyOpened({String message = ''}) {
  if (this.isOpened()) {
    throw InAppBrowserAlreadyOpenedException([
      'Error: ${(message.isEmpty) ? '' : message + ' '}The browser is already opened.'
    ]);
  }
}