SliverPaintOrder enum
Specifies an order in which to paint the slivers of a Viewport.
The slivers of a ScrollView are the list returned by ScrollView.buildSlivers. For a CustomScrollView, this is the same list as CustomScrollView.slivers. For the other built-in subclasses of ScrollView, there is only one sliver in the list, and this ordering has no effect.
Whichever order the slivers are painted in, they will be hit-tested in the opposite order.
This can also be thought of as an ordering in the z-direction: whichever sliver is painted last (and hit-tested first) is on top, because it will paint over other slivers if there is overlap. Similarly, whichever sliver is painted first (and hit-tested last) is on the bottom.
Values
- firstIsTop → const SliverPaintOrder
-
The first sliver paints on top, and the last sliver on bottom.
The slivers are painted in the reverse order of
Viewport.slivers
(for example, the reverse order of ScrollView.buildSlivers or CustomScrollView.slivers), and hit-tested in the same order asViewport.slivers
.This is the default order.
- lastIsTop → const SliverPaintOrder
-
The last sliver paints on top, and the first sliver on bottom.
The slivers are painted in the same order as
Viewport.slivers
(for example, the same order as ScrollView.buildSlivers or CustomScrollView.slivers), and hit-tested in the reverse order.
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
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<
SliverPaintOrder> - A constant List of the values in this enum, in order of their declaration.