Skip to content

Commit

Permalink
Use the shortHash of the key instead of toString() (#310)
Browse files Browse the repository at this point in the history
* Use the `shortHash` of the key instead of `toString()`
  • Loading branch information
AlexV525 authored Jun 28, 2024
1 parent 747cb20 commit 40516b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/controllers/player_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ class PlayerController extends ChangeNotifier {
/// Provides [max] duration of currently provided audio file.
int get maxDuration => _maxDuration;

final UniqueKey _playerKey = UniqueKey();

/// An unique key string associated with [this] player only
String get playerKey => _playerKey.toString();
final playerKey = shortHash(UniqueKey());

final bool _shouldClearLabels = false;

Expand Down

0 comments on commit 40516b5

Please sign in to comment.