Is your feature request related to a problem? Please describe.
Yes, This will eliminate the ugly if-else blocks. I don't know it is feasible or not. Just an idea.
Describe the solution you'd like
I want to achieve something like this.
.when(condition,stylesWhenTrue )
example
'John'.text.size(30).when(1==1, ___ ).color(Colors.white).make()
Additional context
This is just an idea that is similar to laravel query builder
Is your feature request related to a problem? Please describe. Yes, This will eliminate the ugly if-else blocks. I don't know it is feasible or not. Just an idea.
Describe the solution you'd like I want to achieve something like this.
Additional context This is just an idea that is similar to laravel query builder
https://laravel.com/docs/8.x/queries#conditional-clauses