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

BoxStyle({Color backgroundColor = Colors.transparent, Border? border, BorderRadiusGeometry? borderRadius, Gradient? gradient, List<BoxShadow>? boxShadow, BoxShape shape = BoxShape.rectangle})
const

Properties

backgroundColor Color
backgroundColor of SuggestionBox
final
border Border?
border of SuggestionBox
final
borderRadius BorderRadiusGeometry?
borderRadius of SuggestionBox
final
boxShadow List<BoxShadow>?
boxShadow of SuggestionBox
final
gradient Gradient?
gradient of SuggestionBox
final
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.