FileInfo class Null safety
Represents information about image that will be used to upload
- Annotations
Constructors
- FileInfo({String? name, String? url, String? mimeType, int? fileSize, File? file, Uint8List? fileBytes})
- FileInfo.fromBytes({required String? name, required Uint8List? fileBytes, required String? mimeType, File? file = null})
- FileInfo.fromData({required String? name, required File? file, required String? mimeType})
-
FileInfo.fromJson(Map<
String, dynamic> json) -
factory
- FileInfo.fromUrl({required String? url, String? mimeType, int? fileSize, String? name})
Properties
- file → File?
-
file data
final
- fileBytes ↔ Uint8List?
-
file bytes
read / write
- fileSize ↔ int?
-
file size
read / write
- hasBinary → bool
-
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hasSource → bool
-
read-only
- mimeType → String?
-
mime file type
final
- name → String?
-
name of this file
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- url ↔ String?
-
url of this file
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited