JustifyContent

Aligns flex items along the main axis. Mirrors CSS justify-content.

Entries

Link copied to clipboard

Items are packed toward the start of the main axis. Mirrors CSS justify-content: flex-start.

Link copied to clipboard

Items are packed toward the end of the main axis. Mirrors CSS justify-content: flex-end.

Link copied to clipboard

Items are centered along the main axis. Mirrors CSS justify-content: center.

Link copied to clipboard

Items are evenly distributed; first item at the start, last at the end. Mirrors CSS justify-content: space-between.

Link copied to clipboard

Items are evenly distributed with half-size spaces at each end. Mirrors CSS justify-content: space-around.

Link copied to clipboard

Items are evenly distributed with equal space between and around each item. Mirrors CSS justify-content: space-evenly.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.