FileField class
FileField contains the url of the file and the details of the file. The details are the url, the size, the content type and the fileName. also the dimensions and the size of the image if it's an image. The FileField is usually inside the AssetField.
- Annotations
-
- @freezed
Constructors
- FileField({String? url, Details? details, String? fileName, String? contentType})
-
FileField contains the url of the file and the details of the file.
The details are the url, the size, the content type and the fileName.
also the dimensions and the size of the image if it's an image.
The FileField is usually inside the AssetField.
constfactory
-
FileField.fromJson(Map<
String, dynamic> json) -
factory
Properties
- contentType → String?
-
no setterinherited
-
copyWith
→ $FileFieldCopyWith<
FileField> -
no setterinherited
- details → Details?
-
no setterinherited
- fileName → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited