PluginSpec

constructor(create: (EditorSession) -> V, provide: (ViewPlugin<V>) -> Extension? = null, decorations: (V) -> DecorationSet? = null)

Parameters

create

Factory that builds the plugin value for a given session.

provide

Allows the plugin to contribute additional Extensions.

decorations

Extract a DecorationSet from the plugin value.