We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi~
I got a template like this:
.flow : val $name$ = MutableStateFlow(false) \ .asStateFlow() ANY -> private val _$name$ = MutableStateFlow($expr$) \ val $name$: StateFlow<$type$> = _$name$.asStateFlow()
It is working in function:
But not working in class:
How should I do ?
The text was updated successfully, but these errors were encountered:
It works if you write
val x = false.flow
But indeed, it's not working if the expression comes first. Somehow IDEA marks it immediately as an error and does not handle it as an expression.
ATM Custom Postfix templates work only on valid expressions in Kotlin. Not sure if it's possible to change this without side effects.
Sorry, something went wrong.
No branches or pull requests
Hi~
I got a template like this:
It is working in function:
But not working in class:
How should I do ?
The text was updated successfully, but these errors were encountered: