getFilename method
Returns the filename/url of the current track
full
- full path or url
stripped
- stripped path missing the base
Implementation
Future<String> getFilename({FileFormat format = FileFormat.full}) {
// get the information
return getProperty<String>(
format == FileFormat.stripped ? 'filename' : 'path');
}