Skip to content

Instantly share code, notes, and snippets.

@landarskiy
Created December 15, 2022 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landarskiy/2e8a23e863360de6d555d94895c9da5b to your computer and use it in GitHub Desktop.
Save landarskiy/2e8a23e863360de6d555d94895c9da5b to your computer and use it in GitHub Desktop.
public data class GridPadCells(
val rowSizes: ImmutableList<GridPadCellSize>,
val columnSizes: ImmutableList<GridPadCellSize>
) {
val rowCount: Int = rowSizes.size
val columnCount: Int = columnSizes.size
internal val rowsTotalSize: TotalSize = rowSizes.calculateTotalSize()
internal val columnsTotalSize: TotalSize = columnSizes.calculateTotalSize()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment