ScriptingWorkspace class abstract
A workspace represents a collection of files that are likely related (usually part of a single Rive file).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
autocomplete(
String scriptName, ScriptPosition position) → Future< AutocompleteResult> -
Get possible autocompletion results at
position
in script with namescriptName
. -
completeInsertion(
String scriptName, ScriptPosition position) → InsertionCompletion - Get extra text insertion to be auto-completed at the given position.
-
dispose(
) → void - Dispose of the workspace, any further calls will not work.
-
format(
String scriptName) → Future< FormatResult> -
Formats module named
scriptName
. -
fullProblemReport(
) → Future< List< ScriptProblemResult> > - Get an error report for all the script files in this workspace.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
problemReport(
String scriptName) → Future< ScriptProblemResult> -
Get an error report for a script file with identified by
scriptName
. -
rowHighlight(
String scriptName, int row) → Uint32List -
Get the highlight data for a single row of
scriptName
. -
setScriptSource(
String scriptName, String source, {bool highlight = false}) → Future< HighlightResult> -
Set the
source
code for the script withscriptName
. Calling this again with the samescriptName
will overwrite the script. Sethighlight
to true if you'd like to have highlighting data computed. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited