Flow
使用相应函数可使代码更简单。
该快速修复会在函数调用之间彼此替换。
示例:
fun test(flow: Flow<Any>) { flow.filter { it is String } }
在应用快速修复后:
fun test(flow: Flow<Any>) { flow.filterIsInstance<String>() }