NearbyMessageTextRequest class final

Nearby message Text content.

Contains value - the message to be sent or received.

Inheritance

Constructors

NearbyMessageTextRequest.create({required String value})
NearbyMessageTextRequest.createManually({required String value, required String id})
const
NearbyMessageTextRequest.fromJson(Map<String, dynamic>? json)
Gets NearbyMessageTextRequest from json
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id String
finalinherited
isValid bool
Check for the content if it is valid for sending or receiving.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The message to be sent or received
final

Methods

byType<T>({T onTextRequest(NearbyMessageTextRequest)?, T onTextResponse(NearbyMessageTextResponse)?, T onFilesRequest(NearbyMessageFilesRequest)?, T onFilesResponse(NearbyMessageFilesResponse)?}) → T?
  • The onTextRequest callback returns this instance of NearbyMessageContent, cast as NearbyMessageTextRequest if is a text.

  • The onFilesRequest callback returns this instance of NearbyMessageContent, cast as NearbyMessageFilesRequest if is a files pack request.

  • The onFilesResponse callback returns this instance of NearbyMessageContent, cast as NearbyMessageFilesResponse if is a files pack response.

  • inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toJson() Map<String, dynamic>
    Gets Map from NearbyMessageContent
    override
    toString() String
    A string representation of this object.
    override

    Operators

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