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
. -
checkScriptsWithRequires(
) → void -
compile(
String scriptName, {bool failOnErrors = false, bool compileDependencies = false}) → Future< CompileResult?> -
Retrieves the bytecode for module named
scriptName
. -
completeInsertion(
String scriptName, ScriptPosition position) → InsertionCompletion - Get extra text insertion to be auto-completed at the given position.
-
completeWork(
Completer completer, ScriptingWorkspaceResponseResult response) → void -
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.
-
implementedType(
String scriptName) → Future< ImplementedType?> -
Retrieves the implemented type for module named
scriptName
. -
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
. -
registerCompleter<
T> (int workId) → Future< T> -
removeScriptSource(
String scriptId) → void -
responseForWork(
int workId) → ScriptingWorkspaceResponseResult -
rowHighlight(
String scriptName, int row) → Uint32List -
Get the highlight data for a single row of
scriptName
. -
setScriptSource(
String scriptId, String scriptName, String source, {bool highlight = false}) → Future< HighlightResult> -
Set the
source
code for the script withscriptId
. Calling this again with the samescriptId
will overwrite the script. Sethighlight
to true if you'd like to have highlighting data computed.scriptName
is the name used to require this script. -
setSystemGeneratedSource(
String scriptName, String prefix, String source) → Future< HighlightResult> -
toString(
) → String -
A string representation of this object.
inherited
-
workReadyCallback(
int workId) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited