Skip to content

Commit

Permalink
Making onlyWhen default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyEdwards committed Mar 15, 2024
1 parent 22b9112 commit 1e39faa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ expect val ViewWriter.padded: ViewWrapper
val ViewWriter.withDefaultPadding: ViewWrapper get() = padded

@ViewModifierDsl3
expect fun ViewWriter.onlyWhen(default: Boolean = true, condition: suspend ()->Boolean): ViewWrapper
expect fun ViewWriter.onlyWhen(default: Boolean = false, condition: suspend ()->Boolean): ViewWrapper

0 comments on commit 1e39faa

Please sign in to comment.