This question is fairly fundamental but I can't find a solution anywhere. There are many examples of highlighting text in javascript with or without jQuery, but I'm having trouble figuring it out in Dart.
The Selection and Range classes appear to support this but the documentation is kind of sparse.