writeTags method
Method to write ID3 tags to MP3 file.
path
: The path of the file.
tags
: A Tag
object.
artwork
: The file path of the song artwork.
version
: The version of ID3 tag frame you want to write. By default set to ID3V2.
return
: true
if the operation has success, false
instead.
Implementation
Future<bool?> writeTags({
required String path,
required Tag tag,
}) async {
return await _channel.invokeMethod("writeTags", {
"path": path,
"tags": tag.toMap(),
"artwork": tag.artwork,
});
}