detectOrNull static method

Browser? detectOrNull()

Alternative initialization for crossplatform, returns null instead of Exception

Implementation

static Browser? detectOrNull() {
  try {
    return Browser();
  } catch (e, t) {
    return null;
  }
}