reopen method

bool reopen({
  1. bool clear = true,
})

Reopens this storage if isClosed.

  • If clear is true will also clear the fields.

Implementation

bool reopen({bool clear = true}) {
  if (!isClosed) return false;

  if (clear) {
    this.clear();
  }

  _closed = false;

  return true;
}