setScriptSource abstract method

Future<HighlightResult> setScriptSource(
  1. String scriptName,
  2. String source, {
  3. bool highlight = false,
})

Set the source code for the script with scriptName. Calling this again with the same scriptName will overwrite the script. Set highlight to true if you'd like to have highlighting data computed.

Implementation

Future<HighlightResult> setScriptSource(String scriptName, String source,
    {bool highlight = false});