BoxStyle class
Custom style class for SuggestionBox.
Uses ─▶ BoxStyle.default(context) as default.
Which listens to theme context, and fills values by it.
Or use custom one to configure as the way you want:
BoxStyle(
backgroundColor: Colors.white,
border: Border.all(color: Colors.red)
borderRadius: const BorderRadius.all(Radius.circular(10)),
...
)
Constructors
Properties
- backgroundColor → Color
-
backgroundColor of
SuggestionBoxfinal - border → Border?
-
border of
SuggestionBoxfinal - borderRadius → BorderRadiusGeometry?
-
borderRadius of
SuggestionBoxfinal -
boxShadow
→ List<
BoxShadow> ? -
boxShadow of
SuggestionBoxfinal - gradient → Gradient?
-
gradient of
SuggestionBoxfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → BoxShape
-
shape of
SuggestionBox.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
Static Methods
-
defaultStyle(
BuildContext context) → BoxStyle - Generate a minimalist box style theme, appropriate to context's theme.