Name class Null safety

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. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, override
name String
Returns the name.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 ==(dynamic other) bool
Compares if two Names are equal. [...]
override