throwIfNotOpened method Null safety

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

Implementation

void throwIfNotOpened({String message = ''}) {
  if (!this.isOpened()) {
    throw InAppBrowserNotOpenedException([
      'Error: ${(message.isEmpty) ? '' : message + ' '}The browser is not opened.'
    ]);
  }
}