TransferData class
- Implementers
Constructors
- TransferData({int? id, int? type, Uint8List? bytes, TransferDataStream? stream, TransferDataFile? file, int? hash})
- TransferData.dataBytesFactory(Uint8List bytes, int? id)
-
factory
- TransferData.dataFileFactory(TransferDataFile file, int? id)
-
factory
- TransferData.dataStreamFactory(TransferDataStream stream, int? id)
-
factory
- TransferData.fromBytes(Uint8List bytes)
-
factory
- TransferData.fromFile(String? filePath, [int? size])
-
factory
- TransferData.fromMap(Map map)
-
factory
- TransferData.fromStream({String? url, Uint8List? content})
-
factory
Properties
- bytes → Uint8List?
-
Used if type is DataTypes.bytes, otherwise null.
final
- file → TransferDataFile?
-
Used if type is DataTypes.file, otherwise null.
final
- hash ↔ int?
-
Hash value of the data object that was created and transferred
on the platform side. This will be accessible to Flutter with
the callback that returns the transferred data,
such as HMSTransferEngine.dataOnTransferUpdate.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stream → TransferDataStream?
-
Used if type is DataTypes.stream, otherwise null.
final
- type ↔ int?
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited