TF-4265 Add include list to support custom keywords detection
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import 'package:tmail_ui_user/features/composer/presentation/manager/keyword_filter.dart';
|
||||
|
||||
/// Data Transfer Object used to package data sent to the Isolate.
|
||||
/// Since Isolates cannot share memory, we need a simple object to pass parameters.
|
||||
/// Simple DTO to pass parameters to the Isolate.
|
||||
/// Isolates cannot share memory, so we package everything here.
|
||||
class DetectionParams {
|
||||
final String text;
|
||||
final List<KeywordFilter> filters;
|
||||
final List<String> includeList; // Keywords to ADD to the search.
|
||||
final List<KeywordFilter> filters; // Filters to BLOCK specific matches.
|
||||
|
||||
DetectionParams({required this.text, required this.filters});
|
||||
DetectionParams({
|
||||
required this.text,
|
||||
required this.includeList,
|
||||
required this.filters,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user