isLocalStorageSupported method

bool isLocalStorageSupported()

Implementation

bool isLocalStorageSupported() {
  try {
    bool empty = window.localStorage.isEmpty;
    if (kDebugMode) {
      empty;
    }
    return true;
  } catch (_) {
    return false;
  }
}