isClosed property

bool isClosed

Implementation

bool get isClosed {
  if (_isClosed) {
    throw 'You cannot send events to a closed box';
  } else {
    return false;
  }
}