FileMessageParams class
Represents the parameters for a file message.
This class holds the details of a file to be sent or manipulated within the application. It includes information such as the file itself, a caption, thumbnail image, file size, duration, and file name.
- Available extensions
Constructors
- FileMessageParams({File? file, String? thumbImage, int? fileSize, int? duration, String? fileName})
- Initializes a new instance of the FileMessageParams class.
Properties
-
A caption for the file. Defaults to an empty string if not provided.
getter/setter pair
- duration ↔ int?
-
The duration of the file if it is a video or audio file. This is measured in seconds and is optional.
getter/setter pair
- file ↔ File?
-
The file to be sent. This is an optional parameter.
getter/setter pair
- fileName ↔ String?
-
The name of the file. This is an optional parameter.
getter/setter pair
- fileSize ↔ int?
-
The size of the file in bytes. This is an optional parameter.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbImage ↔ String?
-
A thumbnail image for the file. This is an optional parameter.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Available on FileMessageParams, provided by the ExtractFileMessageParams extension
Converts a FileMessageParams object into a map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited