MusicSelection class
Music chosen for the story.
- Annotations
Constructors
- MusicSelection({required MusicTrack track, required Duration start, required Duration duration, String? localPath, double volume = 1})
-
Creates a selection.
const
Properties
- duration → Duration
-
Segment length. For videos this follows the trimmed video length.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- localPath → String?
-
Local audio file, once resolved/downloaded; required for export.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → Duration
-
Offset into the track where the segment starts.
final
- track → MusicTrack
-
The track.
final
- volume → double
-
Music volume 0–1.
final
Methods
-
copyWith(
{Duration? start, Duration? duration, String? localPath, double? volume}) → MusicSelection - Returns a copy with the given values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override