[Android] nullable typo

This commit is contained in:
Vadim 2023-07-04 15:28:58 +02:00
parent 5a85413369
commit 655944069f

View file

@ -63,10 +63,10 @@ class MainActivity : FlutterActivity() {
"com.vodemn.lightmeter/volumeEvents"
)
volumeEventChannel.setStreamHandler(object : EventChannel.StreamHandler {
override fun onListen(listener: Any, eventSink: EventSink) {
override fun onListen(listener: Any?, eventSink: EventSink) {
volumeEventsEmitter = eventSink
}
override fun onCancel(listener: Any) {
override fun onCancel(listener: Any?) {
volumeEventsEmitter = null
}
})