NearbyMessageTextResponse class final
- Inheritance
-
- Object
- NearbyMessageContent
- NearbyMessageTextResponse
Constructors
- NearbyMessageTextResponse({required String id})
-
const
-
NearbyMessageTextResponse.fromJson(Map<
String, dynamic> ? json) -
factory
Properties
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