endSession method

void endSession({
  1. String reason = 'user',
})

Implementation

void endSession({String reason = 'user'}) {
  if (_session != null) {
    final id = _session!.id;
    _session = null;
    _eventController.add(SessionEnded(id, reason: reason));
  }
}