JustifySelf enum

The CSS justify-self property sets the way a box is justified inside its alignment container along the appropriate axis.

Inheritance
Available extensions

Values

auto → const JustifySelf

The value used is the value of the justify-items property of the parents box, unless the box has no parent, or is absolutely positioned, in these cases, auto represents normal.

const JustifySelf('auto')
normal → const JustifySelf

The effect of this keyword is dependent of the layout mode we are in:

  • In block-level layouts, the keyword is a synonym of start.
  • In absolutely-positioned layouts, the keyword behaves like start on replaced absolutely-positioned boxes, and as stretch on all other absolutely-positioned boxes.
  • In table cell layouts, this keyword has no meaning as this property is ignored.
  • In flexbox layouts, this keyword has no meaning as this property is ignored.
  • In grid layouts, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic size where it behaves like start.
const JustifySelf('normal')
stretch → const JustifySelf

If the combined size of the items is less than the size of the alignment container, any auto-sized items have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container.

const JustifySelf('stretch')
center → const JustifySelf

The items are packed flush to each other toward the center of the alignment container.

const JustifySelf('center')
start → const JustifySelf

The item is packed flush to each other toward the start edge of the alignment container in the appropriate axis.

const JustifySelf('start')
end → const JustifySelf

The item is packed flush to each other toward the end edge of the alignment container in the appropriate axis.

const JustifySelf('end')
flexStart → const JustifySelf

For items that are not children of a flex container, this value is treated like start.

const JustifySelf('flex-start')
flexEnd → const JustifySelf

For items that are not children of a flex container, this value is treated like end.

const JustifySelf('flex-end')
selfStart → const JustifySelf

The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.

const JustifySelf('self-start')
selfEnd → const JustifySelf

The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis.

const JustifySelf('self-end')
left → const JustifySelf

The items are packed flush to each other toward the left edge of the alignment container. If the property's axis is not parallel with the inline axis, this value behaves like start.

const JustifySelf('left')

The items are packed flush to each other toward the right edge of the alignment container in the appropriate axis. If the property's axis is not parallel with the inline axis, this value behaves like start.

const JustifySelf('right')
anchorCenter → const JustifySelf

In the case of anchor-positioned elements, aligns the item to the center of the associated anchor element in the inline direction.

const JustifySelf('anchor-center')
baseline → const JustifySelf

Specifies participation in baseline alignment: aligns the alignment baseline of the box's baseline set with the corresponding baseline in the shared baseline set of all the boxes in its baseline-sharing group.

const JustifySelf('baseline')
firstBaseline → const JustifySelf

Specifies participation in first-baseline alignment: aligns the alignment baseline of the box's first baseline set with the corresponding baseline in the shared first baseline set of all the boxes in its baseline-sharing group. The fallback alignment is start.

const JustifySelf('first baseline')
lastBaseline → const JustifySelf

Specifies participation in last-baseline alignment: aligns the alignment baseline of the box's last baseline set with the corresponding baseline in the shared last baseline set of all the boxes in its baseline-sharing group. The fallback alignment is end.

const JustifySelf('last baseline')
safeCenter → const JustifySelf
const JustifySelf('safe center')
unsafeCenter → const JustifySelf
const JustifySelf('unsafe center')
inherit → const JustifySelf
const JustifySelf('inherit')
initial → const JustifySelf
const JustifySelf('initial')
revert → const JustifySelf
const JustifySelf('revert')
revertLayer → const JustifySelf
const JustifySelf('revert-layer')
unset → const JustifySelf
const JustifySelf('unset')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The css value
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<JustifySelf>
A constant List of the values in this enum, in order of their declaration.