EditFormatParams class

edit.format params

{ "file": FilePath "selectionOffset": int "selectionLength": int "lineLength": optional int }

Clients may not extend, implement or mix-in this class.

Constructors

EditFormatParams(String file, int selectionOffset, int selectionLength, {int? lineLength})
EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory
EditFormatParams.fromRequest(Request request)
factory

Properties

file String
The file containing the code to be formatted.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
lineLength int?
The line length to be used by the formatter.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionLength int
The length of the current selection in the file.
getter/setter pair
selectionOffset int
The offset of the current selection in the file.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Returns a JSON presentation of the object.
toRequest(String id) Request
Return a request whose parameters are taken from this object and that has the given id.
toString() String
A string representation of this object.
override

Operators

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