TF-4265 Add include list to support custom keywords detection

This commit is contained in:
dab246
2026-01-30 14:01:36 +07:00
committed by Dat H. Pham
parent 1071bb49cf
commit 42fb24e6e5
6 changed files with 331 additions and 98 deletions
@@ -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,
});
}