getGenre method

String? getGenre()

Implementation

String? getGenre() {
  return switch (_format) {
    Format.mp3 => _mp3file!.getGenre(),
    Format.flac => _flacFile!.getGenre(),
    _ => null,
  };
}