generateTitles method

Future<List<String>> generateTitles(
  1. String text
)

Generates smart titles from the given text.

Uses platform-specific NLP capabilities to analyze the text and generate relevant, contextual titles. On iOS, it uses NaturalLanguage framework, and on Android, it uses platform-specific NLP libraries.

text - The input text to generate titles from

Returns a list of generated titles. If generation fails, returns a list with an error message.

Implementation

Future<List<String>> generateTitles(String text) {
  return TitleGeneratorPluginPlatform.instance.generateTitles(text);
}