DataPart class final
A data part containing binary data (e.g., images).
- Inheritance
-
- Object
- Part
- StandardPart
- DataPart
- Annotations
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Serializes the part to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
extensionFromMimeType(
String mimeType) → String? - Gets the extension for a MIME type.
-
fromFile(
XFile file) → Future< DataPart> -
Creates a data part from an
XFile. -
mimeTypeForFile(
String path, {Uint8List? headerBytes}) → String - Gets the MIME type for a file.
-
nameFromMimeType(
String mimeType) → String - Gets the name for a MIME type.
Constants
- defaultMimeType → const String
- type → const String