NearbyMessageFilesRequest class final
Nearby message File Request. Used for files sending requests. Contains info about the files.
- Inheritance
-
- Object
- NearbyMessageContent
- NearbyMessageFilesRequest
Constructors
-
NearbyMessageFilesRequest.create({required List<
NearbyFileInfo> files}) -
Basic constructor with
files
to be sent or received. Generates id in constructor. -
NearbyMessageFilesRequest.createManually({required String id, required List<
NearbyFileInfo> files}) -
Adds a NearbyFileInfo list to
id
to identify files.const -
NearbyMessageFilesRequest.fromJson(Map<
String, dynamic> ? json) -
Gets NearbyMessageFilesRequest from
json
.factory
Properties
-
files
→ List<
NearbyFileInfo> -
Info about the files to be sent or received.
final
- 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
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