textParts property
The snippet splitted in parts around the matched query.
For example, if the document contains the string "The weather is beautiful in Florida today"
and your query is "beautiful", this array will contain:
"The weather is ", "beautiful", " in Florida today".
This feature intends to build RichText
on your app to highlight the query
in the result.
Implementation
List<String> get textParts => throw _privateConstructorUsedError;