Name class

A Name helper class used for Mojang.getNameHistory(). It contains the name and the date it was changed to.

Constructors

Name(String _name, int _changedToAt)
Create a Name from a name String and a int value representing the unix timestamp at which the name was switched to.
Name.fromJson(Map<String, dynamic> json)
Create a Name from JSON data.

Properties

changedAtDate DateTime
Returns the date this name was set at.
no setter
hashCode int
The hash code for this object.
no setteroverride
name String
Returns the name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(dynamic other) bool
Compares if two Names are equal.
override