ThisBlock
Helper for non-Kotlin consumers instead of using
T.() -> UnitContent copied to clipboard
which would force a return of Unit.
e.g. (Kotlin)
My.Builder {
add(My.Factory) { enable = true }
}Content copied to clipboard
e.g. (Java)
My.Builder(b -> {
b.add(My.Factory.Companion, s -> {
s.enable = true;
});
});Content copied to clipboard