NearbyMessageTextResponse class final

Inheritance

Constructors

NearbyMessageTextResponse({required String id})
const
NearbyMessageTextResponse.fromJson(Map<String, dynamic>? json)
factory

Properties

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

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
    inherited
    toString() String
    A string representation of this object.
    override

    Operators

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