Scope class

A Scope is a named container for variables. Optionally a scope can map to a source or a range within a source.

Constructors

Scope({int? column, int? endColumn, int? endLine, required bool expensive, int? indexedVariables, int? line, required String name, int? namedVariables, String? presentationHint, Source? source, required int variablesReference})
Scope.fromMap(Map<String, Object?> obj)

Properties

column int?
Start position of the range covered by the scope. It is measured in UTF-16 code units and the client capability columnsStartAt1 determines whether it is 0- or 1-based.
final
endColumn int?
End position of the range covered by the scope. It is measured in UTF-16 code units and the client capability columnsStartAt1 determines whether it is 0- or 1-based.
final
endLine int?
The end line of the range covered by this scope.
final
expensive bool
If true, the number of variables in this scope is large or expensive to retrieve.
final
hashCode int
The hash code for this object.
no setterinherited
indexedVariables int?
The number of indexed variables in this scope. The client can use this information to present the variables in a paged UI and fetch them in chunks.
final
line int?
The start line of the range covered by this scope.
final
name String
Name of the scope such as 'Arguments', 'Locals', or 'Registers'. This string is shown in the UI as is and can be translated.
final
namedVariables int?
The number of named variables in this scope. The client can use this information to present the variables in a paged UI and fetch them in chunks.
final
presentationHint String?
A hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Source?
The source for this scope.
final
variablesReference int
The variables of this scope can be retrieved by passing the value of variablesReference to the variables request as long as execution remains suspended. See 'Lifetime of Object References' in the Overview section for details.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

canParse(Object? obj) bool
fromJson(Map<String, Object?> obj) Scope