ShadowVisibility enum
The ShadowVisibility defines the behavior of shadows applied to the top and
bottom edges of a scrollable widget, based on the scroll state and content
dimensions. This applies independently to the top and bottom edges, allowing
different shadow behaviors for each.
-
whenScrolled: The shadow is displayed only when there is overflow content in the respective direction, indicating that more content can be revealed by scrolling. If the content fits entirely within the viewport, the shadow will not be shown. -
alwaysOn: The shadow is always visible, regardless of the scroll state or content size. This provides a consistent appearance at the edge of the scrollable area. -
alwaysOff: The shadow is never displayed, even if there is overflow content. Use this to completely disable shadow effects for the respective edge.
- Inheritance
- Available extensions
Values
- whenScrolled → const ShadowVisibility
-
The shadow is displayed only when there is overflow content in the respective direction. For example, a top shadow appears when the content is scrolled downward, indicating that more content exists above the visible area.
- alwaysOn → const ShadowVisibility
-
The shadow is always visible, regardless of the scroll position or content size. This is useful for emphasizing boundaries or providing a consistent aesthetic.
- alwaysOff → const ShadowVisibility
-
The shadow is never displayed, even if the content exceeds the viewport. This is ideal for cases where shadows are not needed or desired.
Properties
-
$
→ Signal<
T> -
Available on T, provided by the SignalEnumExtensions extension
Return a signal from a Enum valueno setter - 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<
ShadowVisibility> - A constant List of the values in this enum, in order of their declaration.