ImageVectorEmitter

class ImageVectorEmitter(logger: Logger, formatConfig: FormatConfig = FormatConfig()) : CodeEmitter(source)

Emits Jetpack Compose ImageVector.Builder Kotlin code from IconFileContents.

This is the primary CodeEmitter implementation, extracted from the IconFileContents.materialize() method to separate domain from formatting.

Constructors

Link copied to clipboard
constructor(logger: Logger, formatConfig: FormatConfig = FormatConfig())

Functions

Link copied to clipboard
open override fun emit(contents: IconFileContents): String

Generates Kotlin source code for the given icon file contents.