PartialAudio class
A class that represents partial audio message.
- Annotations
-
- @JsonSerializable()
- @immutable
Constructors
-
PartialAudio({required Duration duration, Map<
String, dynamic> ? metadata, String? mimeType, required String name, Message? repliedMessage, required num size, required String uri, List<double> ? waveForm}) -
Creates a partial audio message with all variables audio can have.
Use AudioMessage to create a full message.
You can use AudioMessage.fromPartial constructor to create a full
message from a partial one.
const
-
PartialAudio.fromJson(Map<
String, dynamic> json) -
Creates a partial audio message from a map (decoded JSON).
factory
Properties
- duration → Duration
-
The length of the audio.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> ? -
Additional custom metadata or attributes related to the message.
final
- mimeType → String?
-
Media type of the audio file.
final
- name → String
-
The name of the audio.
final
- repliedMessage → Message?
-
Message that is being replied to with the current message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → num
-
Size of the audio in bytes.
final
- uri → String
-
The audio file source (either a remote URL or a local resource).
final
-
waveForm
→ List<
double> ? -
Wave form represented as a list of decibel levels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a partial audio message to the map representation, encodable to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited