Skip to content

Commit

Permalink
static ViewContext.of
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Schuehly committed Aug 28, 2023
1 parent fc632f3 commit 1873ed5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,13 @@ class ViewContext(override val contextAttributes: Array<out ViewProperty>) :
this.componentTemplate = componentTemplate

}
companion object{
@JvmStatic
fun of(vararg contextAttributes: ViewProperty): ViewContext {
return ViewContext(
*contextAttributes
)
}
}

}

0 comments on commit 1873ed5

Please sign in to comment.