Message class abstract
Messages to be sent.
Constructors
-
Message.fromCallbacks({required Future<
String> template(Gateway gateway), required Future<String> text(Gateway gateway), required Future<Map< data(Gateway gateway)})String, dynamic> > -
Creates a new Message instance from callbacks.
constfactory
-
Message.fromValues({required String template, String text, Map<
String, dynamic> data}) -
Creates a new Message instance from values.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toData(
Gateway gateway) → Future< Map< String, dynamic> > - Returns a Map<String, String> of the message.
-
toString(
) → String -
A string representation of this object.
inherited
-
toTemplate(
Gateway gateway) → Future< String> - Return a template of the message.
-
toText(
Gateway gateway) → Future< String> - Returns a text of the message.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited