SuggestionsBoxDecoration class
Supply an instance of this class to the TypeAhead.suggestionsBoxDecoration
property to configure the suggestions box decoration
Constructors
- SuggestionsBoxDecoration({double elevation = 4.0, Color? color, ShapeBorder? shape, bool hasScrollbar = true, BorderRadius? borderRadius, Color shadowColor = Colors.black, BoxConstraints? constraints, Clip clipBehavior = Clip.none, double offsetX = 0.0, bool scrollbarThumbAlwaysVisible = false, bool scrollbarTrackAlwaysVisible = false})
-
Creates a SuggestionsBoxDecoration
const
Properties
- borderRadius → BorderRadius?
-
If non-null, the corners of this box are rounded by this BorderRadius.
final
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
final
- color → Color?
-
The color to paint the suggestions box.
final
- constraints → BoxConstraints?
-
The constraints to be applied to the suggestions box
final
- elevation → double
-
The z-coordinate at which to place the suggestions box. This controls the size
of the shadow below the box.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasScrollbar → bool
-
Defines if a scrollbar will be displayed or not.
final
- offsetX → double
-
Adds an offset to the suggestions box
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollbarThumbAlwaysVisible → bool
-
If set to true, the scrollbar thumb in the suggestion list will always be visible
evnen when not scrolling.
final
- scrollbarTrackAlwaysVisible → bool
-
If set to true, the scrollbar track in the suggestion list will always be visible
evnen when not scrolling.
final
- shadowColor → Color
-
The color to paint the shadow below the material.
final
- shape → ShapeBorder?
-
Defines the material's shape as well its shadow.
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