-
public final class ModifierExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static ModifieraddIf(Modifier $self, Boolean condition, Function1<Modifier, Modifier> factory)Adds the provided modifier elements to this modifier chain if condition is true. final static <T extends Any> ModifieraddIfNotNull(Modifier $self, T value, Function2<Modifier, T, Modifier> factory)Adds the provided modifier elements to this modifier chain if value is not null. -
-
Method Detail
-
addIf
final static Modifier addIf(Modifier $self, Boolean condition, Function1<Modifier, Modifier> factory)
Adds the provided modifier elements to this modifier chain if condition is true.
-
addIfNotNull
final static <T extends Any> Modifier addIfNotNull(Modifier $self, T value, Function2<Modifier, T, Modifier> factory)
Adds the provided modifier elements to this modifier chain if value is not null.
-
-
-
-