registerPlay method

void registerPlay(
  1. String path
)

Implementation

void registerPlay(String path) {
  _playCounts[path] = (_playCounts[path] ?? 0) + 1;
  ULocalStorage.set(_playCountKey, _playCounts.entries.map((MapEntry<String, int> e) => "${e.key}|${e.value}").join("\n"));
  notifyListeners();
}