AttributeValue class

Values for use in Player attribute key-value pairs. This object lets you specify an attribute value using any of the valid data types: string, number, string array, or data map. Each AttributeValue object can use only one of the available properties.

Constructors

AttributeValue({double? n, String? s, Map<String, double>? sdm, List<String>? sl})
AttributeValue.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
n double?
For number values, expressed as double.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s String?
For single string values. Maximum string length is 100 characters.
final
sdm Map<String, double>?
For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.
final
sl List<String>?
For a list of up to 10 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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