From d2ea408fde1fbdf5189206d2f31e5bc10506b707 Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Sat, 18 May 2024 17:41:12 +0400 Subject: [PATCH] Refactor SpinifyMetrics$Mutable class and add freeze() method --- lib/src/model/metric.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/model/metric.dart b/lib/src/model/metric.dart index a7d7b23..b69c008 100644 --- a/lib/src/model/metric.dart +++ b/lib/src/model/metric.dart @@ -205,5 +205,6 @@ final class SpinifyMetrics$Mutable extends SpinifyMetrics { @override BigInt messagesSent = BigInt.zero; + /// Freezes the metrics. SpinifyMetrics$Immutable freeze() => const SpinifyMetrics$Immutable(); }