getHighlights method

  1. @override
Future<List<CodeHighlight>> getHighlights(
  1. String code,
  2. String? language,
  3. String? theme,
  4. 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 [];
  }
}