getFilename method

Future<String> getFilename({
  1. FileFormat format = FileFormat.full,
})

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');
}