throwIsAlreadyOpened method Null safety

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

Implementation

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