Skip to main content
.listRowSeparator(visibility: "hidden" | "visible"): Component
visibility
"hidden" | "visible"
required
Whether the separator line below this row is visible or hidden.

Support

Usage

Hiding separators

List([
    ForEach(items, (item) =>
        Text(item.name)
            .listRowSeparator("hidden")
    )
])

Selectively hiding separators

List([
    ForEach(items, (item, index) =>
        Text(item.name)
            .listRowSeparator(
                index === items.length - 1
                    ? "hidden"
                    : "visible"
            )
    )
])

See Also