setScriptSource abstract method

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

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

Implementation

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