ZIndex class

The z-index CSS property sets the z-order of a positioned element and its descendants or flex and grid items. Overlapping elements with a larger z-index cover those with a smaller one.

See also:

  • Position for controlling how an element is positioned in a document.

Read more: MDN z-index

Constructors

ZIndex(int value)
This value is the stack level of the generated box in the current stacking context. The box also establishes a local stacking context. This means that the z-indexes of descendants are not compared to the z-indexes of elements outside this element.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
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

auto → const ZIndex
The box does not establish a new local stacking context. The stack level of the generated box in the current stacking context is 0.
inherit → const ZIndex
initial → const ZIndex
revert → const ZIndex
revertLayer → const ZIndex
unset → const ZIndex