NearbyMessageFilesResponse class final
Nearby message File Response. Used for file sending responses.
- Inheritance
-
- Object
- NearbyMessageContent
- NearbyMessageFilesResponse
Constructors
- NearbyMessageFilesResponse({required String id, required bool isAccepted})
- Used to send a response to a previously received request. Provide id from NearbyMessageFilesRequest.
-
NearbyMessageFilesResponse.fromJson(Map<
String, dynamic> ? json) -
Gets NearbyMessageFilesResponse from Map
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
- isAccepted → bool
-
The main response to the received NearbyMessageFilesRequest.
final
- 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
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited