Activity class Null safety

Presence is game or activity which user is playing/user participate. Can be game, eg. Dota 2, VS Code or activity like Listening to song on Spotify.

Properties

activityFlags ActivityFlags
Activity flags ORd together, describes what the payload includes
final, read / write, late
applicationId Snowflake?
Application id for the game
final, read / write, late
assets GameAssets?
Images for the presence and their hover texts
final, read / write, late
buttons Iterable<String>
Activity buttons. List of button labels
final, read / write, late
createdAt DateTime
Timestamp of when the activity was added to the user's session
final, read / write, late
customStatusEmoji ActivityEmoji?
The emoji used for a custom status
final, read / write, late
details String?
What the player is currently doing
final, read / write, late
hashCode int
The hash code for this object. [...]
read-only, inherited
instance bool?
Whether or not the activity is an instanced game session
final, read / write, late
name String
The activity name.
final, read / write, late
party ActivityParty?
Information for the current party of the player
final, read / write, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secrets GameSecrets?
Secrets for Rich Presence joining and spectating
final, read / write, late
state String?
The user's current party status
final, read / write, late
timestamps ActivityTimestamps?
Timestamps for start and/or end of the game
final, read / write, late
type ActivityType
The activity type.
final, read / write, late
url String?
The game URL, if provided.
final, read / write, late

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited