Package-level declarations

Types

Link copied to clipboard
data class FlutterEvent(val name: String)

Name of the event to execute.

Link copied to clipboard
data class FlutterExtension(val className: String)

Name of the extension class to be generated.

Link copied to clipboard
data class FlutterMessageType(val dataType: AbstractType)

Data Type used to communicate between Flutter and Kotlin.

Link copied to clipboard
data class FlutterMethod(val name: String)

Name of the method to be generated.

Link copied to clipboard
class PackageLib(name: String, exports: List<String>) : KlutterPrinter

Main package file which exports all generated widgets.

Link copied to clipboard
data class PublisherWidget(val channel: FlutterSyncChannel, val event: FlutterEvent, val extension: FlutterExtension, val requestType: FlutterMessageType? = null, val responseType: FlutterMessageType, val method: FlutterMethod, val isProtobufEnabled: Boolean)

Wrapper for all fields to configure code generation for a Flutter Widget.

Link copied to clipboard
class SubscriberWidget(topic: String, channel: FlutterAsyncChannel, controllerName: String, dataType: AbstractType) : KlutterPrinter

Example

Functions

Link copied to clipboard

Serialize a pubspec.yaml for a new plugin project.

Link copied to clipboard

Create a KlutterPrinter instance which generates a Flutter Producer Widget.

Link copied to clipboard

Serialize a pubspec.yaml for a new plugin project.