throwIfAlreadyOpened method Null safety

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

Implementation

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