Person class

Someone we know about, held once however many channels we share.

Constructors

Person({required String nick, required String? account, required String? away, required bool bot, required String? username, required String? host, required String? realname, required bool operator, required Map<String, String> metadata})
const
Person.fromJson(Map<String, dynamic> json)
factory

Properties

account String?
The account they are logged in as.
final
away String?
Their away message, when they are away.
final
bot bool
True when the server marks them as a bot.
final
hashCode int
The hash code for this object.
no setterinherited
host String?
Their host, from WHO or a hostmask.
final
metadata Map<String, String>
Metadata the server holds, such as display-name, color and avatar. These are plain draft/metadata-2 keys with no vendor prefix, despite everything else Obby adds being namespaced.
final
nick String
Their nick, as they spell it.
final
operator bool
True when the server marks them as an operator.
final
realname String?
Their realname, from WHO.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
Their username, from WHO or a hostmask.
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