TF-4265 Refactor: Move Regex pattern generation to Main Thread to leverage static caching and reduce Isolate initialization overhead.
This commit is contained in:
@@ -4,12 +4,12 @@ import 'package:tmail_ui_user/features/composer/presentation/manager/keyword_fil
|
||||
/// Isolates cannot share memory, so we package everything here.
|
||||
class DetectionParams {
|
||||
final String text;
|
||||
final List<String> includeList; // Keywords to ADD to the search.
|
||||
final String regexPattern;
|
||||
final List<KeywordFilter> filters; // Filters to BLOCK specific matches.
|
||||
|
||||
DetectionParams({
|
||||
required this.text,
|
||||
required this.includeList,
|
||||
required this.regexPattern,
|
||||
required this.filters,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user