CodeEditingDelegate class abstract interface

Optional synchronous snippet editing. Coordinates refer to the projected code body (UTF-16, LF), without Markdown container prefixes. The caller owns the delegate; Flark owns validation, source translation and history.

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

highlight(String source, String info) → CodeHighlight
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
propose(String source, {required String language, required int base, required int extent, required CodeEditingAction action, required String text, required String indentUnit}) → CodeEditProposal?
The edit action makes of the code body source, whose selection runs from base to extent, or null to leave it to Flark's literal code editing. text is what CodeEditingAction.insert types, and indentUnit the step Tab inserts.
resolveLanguage(String source, String info) → String
toString() → String
A string representation of this object.
inherited

Operators

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