Message class Null safety

Basic message class.

Constructors

Message({required String user, required String msg})
Message.fromJson(Map<String, dynamic> json)
Construct class from Map of String and dynamic type

Properties

hashCode int
The hash code for this object.
read-only, inherited
msg String
Message text
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
user String
Message author
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Retrurn Map presentation of the Message
toString() String
A string representation of this object.
inherited

Operators

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