FileData class
Constructors
- FileData({required String name, Uint8List? bytes, String? path, String? mimeType})
-
const
- FileData.fromBytes({required String name, required Uint8List bytes, String? mimeType})
-
Creates a FileData from Uint8List
factory
-
FileData.fromIntList({required String name, required List<
int> bytes, String? mimeType}) -
Creates a FileData from a List
factory
- FileData.fromPath({required String name, required String path, String? mimeType})
-
Creates a FileData from a file path
factory
Properties
- bytes → Uint8List?
-
File bytes (Uint8List format)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mimeType → String?
-
Optional MIME type (e.g., 'image/jpeg', 'application/pdf')
final
- name → String
-
File name (required)
final
- path → String?
-
File path on the file system
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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override