BroadcastMessage class

A message, which is sent by or to the native broadcast system.

It must have a name and may optionally contain a Map of user-provided data.

Constructors

BroadcastMessage({required String name, Map<String, dynamic>? data})
Creates a new BroadcastMessage, which can be sent using sendBroadcast.

Properties

data Map<String, dynamic>?
Optional user-provided data for this message.
final
hashCode int
The hash code for this object.
no setteroverride
name String
A name, which specifies the type of this message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime?
The timestamp when this message was sent or retrieved.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Creates a Map containing all information about this message.
toString() String
A string representation of this object.
override

Operators

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