themed method

List<ThemedToken> themed(
  1. SyntaxTheme theme
)

tokens styled by theme, cached for the last theme used.

Implementation

List<ThemedToken> themed(SyntaxTheme theme) {
  if (theme == _themedWith) return _themed;
  _themedWith = theme;
  return _themed = themeTokens(text, tokens, theme);
}