Context constructor

Context({
  1. ContextType contextType = ContextType.unknown,
  2. UserType userType = UserType.unknown,
  3. PayloadType payloadType = PayloadType.unknown,
  4. String description = '',
  5. String userId = '',
  6. String deviceId = '',
  7. String productId = '',
  8. String versionId = '',
  9. String installId = '',
  10. String locale = '',
  11. int sessionId = -1,
  12. bool isInternal = false,
  13. bool isSnapshot = false,
  14. bool isReady = false,
  15. bool hasInput = false,
  16. String channelLocale = '',
  17. String embeddedSpaceId = '',
  18. String authSessionId = '',
  19. bool receiveAllMessages = false,
  20. int preciseJoinedAt = 0,
  21. String userAgent = '',
  22. ClientType clientType = ClientType.unknown,
  23. String uniqueSessionId = '',
  24. Map<String, String> parameters = const {},
  25. SdkType sdkType = SdkType.unknown,
  26. int sdkCapability = 0,
  27. int viewportWidth = 0,
  28. int viewportHeight = 0,
  29. String theme = '',
  30. String timezone = '',
  31. bool isTouchDevice = false,
  32. String initialPath = '',
  33. StyleFormat styleFormat = StyleFormat.css,
  34. bool supportsCompression = true,
  35. bool isSoftDisconnected = false,
  36. int softDisconnectAt = 0,
})

Implementation

Context({
    this.contextType = ContextType.unknown,
    this.userType = UserType.unknown,
    this.payloadType = PayloadType.unknown,
    this.description = '',
    this.userId = '',
    this.deviceId = '',
    this.productId = '',
    this.versionId = '',
    this.installId = '',
    this.locale = '',
    this.sessionId = -1,
    this.isInternal = false,
    this.isSnapshot = false,
    this.isReady = false,
    this.hasInput = false,
    this.channelLocale = '',
    this.embeddedSpaceId = '',
    this.authSessionId = '',
    this.receiveAllMessages = false,
    this.preciseJoinedAt = 0,
    this.userAgent = '',
    this.clientType = ClientType.unknown,
    this.uniqueSessionId = '',
    this.parameters = const {},
    this.sdkType = SdkType.unknown,
    this.sdkCapability = 0,
    this.viewportWidth = 0,
    this.viewportHeight = 0,
    this.theme = '',
    this.timezone = '',
    this.isTouchDevice = false,
    this.initialPath = '',
    this.styleFormat = StyleFormat.css,
    this.supportsCompression = true,
    this.isSoftDisconnected = false,
    this.softDisconnectAt = 0,
});