refactoring
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import 'package:fast_equatable/fast_equatable.dart';
|
||||
|
||||
class EquatableCollection<T> with FastEquatable {
|
||||
final T collection;
|
||||
final bool immutable;
|
||||
|
||||
EquatableCollection(this.collection, {required this.immutable})
|
||||
: assert(
|
||||
collection is Map || collection is Iterable || collection == null,
|
||||
'Collection type not supported',
|
||||
);
|
||||
|
||||
@override
|
||||
bool get cacheHash => immutable;
|
||||
|
||||
@override
|
||||
List<Object?> get hashParameters => [collection, immutable];
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class ReceivedIntentParameter {
|
||||
final String? content;
|
||||
final String? tool;
|
||||
|
||||
ReceivedIntentParameter(this.content, this.tool);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
class ReceivedParameter {
|
||||
final String? content;
|
||||
final String? tool;
|
||||
|
||||
ReceivedParameter(this.content, this.tool);
|
||||
}
|
||||
Reference in New Issue
Block a user