You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a problem in the following code snippet(File: FlutterMidiCommandPlugin.kt, Line: 389, Column: 34).
Error: Inferred type is String? but Any was expected.
funlistOfDevices() : List<Map<String, Any>> {
var list = mutableListOf<Map<String, Any>>()
val devs:Array<MidiDeviceInfo> = midiManager.devices
Log.d("FlutterMIDICommand", "devices $devs")
devs.forEach { d -> list.add(mapOf(
"name" to d.properties.getString(MidiDeviceInfo.PROPERTY_NAME),
"id" to d.id.toString(),
"type" to "native",
"connected" to if (connectedDevices.contains(d.id.toString())) "true"else"false",
"inputs" to listOfPorts(d.inputPortCount),
"outputs" to listOfPorts(d.outputPortCount)
)
)}
It must be something related to a kotlin update where the type Any is not used for null, but Any? works.
Again, thanks for the package.
The text was updated successfully, but these errors were encountered:
Hello, first thanks for the package, very useful.
I found a problem in the following code snippet(File: FlutterMidiCommandPlugin.kt, Line: 389, Column: 34).
Error: Inferred type is String? but Any was expected.
It must be something related to a kotlin update where the type Any is not used for null, but Any? works.
Again, thanks for the package.
The text was updated successfully, but these errors were encountered: