UserData class Null safety

Container for information about user. May be used for better targeting ads.

This data is not persistent across application restarts.

Properties

birthday DateTime?
read / write
gender Gender
User's gender.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String?
User's identifier. It is used in server-side rewarding feature.
read / write
location Location?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Static Methods

getCurrent() Future<UserData>
Returns current user data.