Skip to content

Commit 2fdc545

Browse files
committed
refactor: allow ImType subclasses to override equality
1 parent c685417 commit 2fdc545

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/src/models/isolate_types.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// Reason: ImType and its subclasses require custom equality logic for isolate-safe value comparison.
2+
// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes
3+
14
import 'package:isolate_manager/src/models/isolate_exceptions.dart';
2-
import 'package:meta/meta.dart';
35

46
/// An abstract wrapper for simple transferable types between the main thread
57
/// and worker isolates.
@@ -13,7 +15,6 @@ import 'package:meta/meta.dart';
1315
/// - [Map] (wrapped in [ImMap])
1416
///
1517
/// The static [wrap] method wraps a Dart object in the appropriate [ImType].
16-
@immutable
1718
sealed class ImType<T extends Object> {
1819
/// Creates an instance of [ImType] holding the provided [_value].
1920
const ImType(this._value);

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ environment:
1313
sdk: ">=3.7.0"
1414

1515
dependencies:
16-
meta: any
1716
path: ^1.0.0
1817
stream_channel: ^2.0.0
1918
web: ^1.0.0

0 commit comments

Comments
 (0)