TagsProcessor class Null safety

Helper class to extract and process search tags from objects. The search tags can be kept individually or embedded as hash tags inside text like 'This text has #hash_tag that can be used for search.'

Constructors

TagsProcessor()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

compressTag(String tag) String
Compress a tag by removing special symbols like spaces, '_' and '#' and converting the tag to lower case. When tags are compressed they can be matched in search queries. [...]
compressTagList(String tagList) List<String>
Compresses a comma-separated list of tags. [...]
compressTags(List<String> tags) List<String>
Compresses a list of tags. [...]
equalTags(String? tag1, String? tag2) bool
Compares two tags using their compressed form. [...]
extractHashTags(String text) List<String>
Extracts hash tags from a text. [...]
extractHashTagsFromValue(dynamic obj, List<String> searchFields) List<String>
Extracts hash tags from selected fields in an object. [...]
normalizeTag(String tag) String
Normalizes a tag by replacing special symbols like '_' and '#' with spaces. When tags are normalized then can be presented to user in similar shape and form. [...]
normalizeTagList(String tagList) List<String>
Normalizes a comma-separated list of tags. [...]
normalizeTags(List<String> tags) List<String>
Normalizes a list of tags. [...]