UserPresence constructor

const UserPresence({
  1. required String userId,
  2. required String sessionId,
  3. required String username,
  4. required bool persistence,
  5. String? status,
})

Implementation

const factory UserPresence({
  /// The user this presence belongs to.
  required String userId,

  /// A unique session ID identifying the particular connection, because the
  /// user may have many.
  required String sessionId,

  /// The username for display purposes.
  required String username,

  /// Whether this presence generates persistent data/messages, if applicable
  /// for the stream type.
  required bool persistence,

  /// A user-set status message for this stream, if applicable.
  String? status,
}) = _UserPresence;