Method

data class Method(val command: String, val import: String, val method: String, val async: Boolean = false, val responseDataType: AbstractType, val requestDataType: AbstractType? = null, val requestParameterName: String? = null)

Data class to contain information about analyzed Kotlin (Platform) code which is used to generate Dart code in the Flutter lib folder.

Constructors

Link copied to clipboard
constructor(command: String, import: String, method: String, async: Boolean = false, responseDataType: AbstractType, requestDataType: AbstractType? = null, requestParameterName: String? = null)

Properties

Link copied to clipboard
val async: Boolean = false

Boolean value indicating a method to be called is asynchronous or not.

Link copied to clipboard

The command to execute a method-channel method.

Link copied to clipboard

The full import statement as required in Android to call a platform method.

Link copied to clipboard

The actual platform method signature to be executed.

Link copied to clipboard

The type of data consumed when calling the method.

Link copied to clipboard

Name of the request parameter (if any).

Link copied to clipboard

The type of data returned when calling the method.