getHighlights method
Future<List<CodeHighlight> >
getHighlights(
- String code,
- String? language,
- String? theme,
- List<
PhraseLocation> ? emphasisLocations,
override
Implementation
@override
Future<List<CodeHighlight>> getHighlights(
String code,
String? language,
String? theme,
List<PhraseLocation>? emphasisLocations,
) async {
try {
return await HighlightsPluginPlatform.instance.getHighlights(
code,
language,
theme,
emphasisLocations,
);
} catch (e, st) {
_printDebugInfo(methods.getHighlights, e, st);
return [];
}
}