getTokenTypeAt method
This is a (much) cheaper version of getTokenAt useful for when you just need the type of the token at a given position, and no other information. Will return null for unstyled tokens, and a string, potentially containing multiple space-separated style names, otherwise.
Implementation
String? getTokenTypeAt(Position pos) => callArg('getTokenTypeAt', pos);