Skip to content

Commit

Permalink
use base and final
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll committed Nov 8, 2024
1 parent b9d97ee commit d0aeb95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/unified_analytics/lib/src/event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ final class Event {
///
/// This base type can be used as a parameter in any event constructor that
/// allows custom metrics to be added by a unified_analytics client.
abstract class CustomMetrics {
abstract base class CustomMetrics {
/// Converts the custom metrics data to a [Map] object.
///
/// This must be a JSON encodable [Map].
Expand Down
2 changes: 1 addition & 1 deletion pkgs/unified_analytics/test/event_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ void main() {
});
}

class _TestMetrics extends CustomMetrics {
final class _TestMetrics extends CustomMetrics {
_TestMetrics({
required this.stringField,
required this.nullableField,
Expand Down

0 comments on commit d0aeb95

Please sign in to comment.