NearbyFileInfo class

A representation of a file that can be got from the Nearby Service's communication channel.

From the communication channel, you usually get the NearbyMessageFilesRequest request first. After that, you can send positive NearbyMessageFilesResponse and get the list of NearbyFileInfo.

Constructors

NearbyFileInfo({required String path})
Contains the file path to get the file from it.
const
NearbyFileInfo.fromJson(Map<String, dynamic>? json)
factory

Properties

extension String
Quick access to the file extension
no setter
hashCode int
The hash code for this object.
no setteroverride
name String
Quick access to the file name
no setter
path String
Path of the representing file
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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