FileInfo class
File information model
Constructors
-
FileInfo({required String id, required String filename, required String originalName, required String mimeType, required int size, String? url, String? bucket, bool isPublic = false, DateTime? createdAt, Map<
String, String> ? thumbnails, Map<String, dynamic> ? metadata}) -
Creates a new FileInfo instance
const
-
FileInfo.fromJson(Map<
String, dynamic> json) -
Creates from JSON
factory
Properties
- bucket → String?
-
Storage bucket
final
- createdAt → DateTime?
-
Creation timestamp
final
- filename → String
-
Stored filename
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
File ID
final
- isPublic → bool
-
Whether file is public
final
-
metadata
→ Map<
String, dynamic> ? -
Additional metadata
final
- mimeType → String
-
MIME type
final
- originalName → String
-
Original filename
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
File size in bytes
final
-
thumbnails
→ Map<
String, String> ? -
Thumbnail URLs
final
- url → String?
-
Download URL
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to JSON
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited