SDropdownMenuStyle class

Style of the dropdown menu

Constructors

SDropdownMenuStyle({BoxBorder? border, Color barrierColor = Colors.black26, bool isSmall = true, bool showSelected = false, bool leadingIcon = false, bool hideIcon = false, BoxConstraints? constraints, Offset? offset, double? elevation, Color? color, EdgeInsets? padding, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(15))})
const

Properties

barrierColor Color
For dropdown menus or slide menus, the color that is the background of the screen when the menu opens. Usually is translucent so the app can still be seen. This is the same region where "clicking off" the menu will close it. Below menu but on top of menu body.
final
border BoxBorder?
The border around the menu
final
borderRadius BorderRadius
The border radius of the menu
final
color Color?
The color of the background of the menu, size of the background is determined by width and height given. Default is transparent.
final
constraints BoxConstraints?
The size contraints for the dropdown, used TODO: what is this for
final
elevation double?
The elavation, or shadow, applied to the menu
final
hashCode int
The hash code for this object.
no setterinherited
hideIcon bool
If true, icon will not be shown, default is false
final
isSmall bool
If true, doesn't show the selected item, doesn't show the child, only shows the icon. If hideIcon is also true the dropdown button will be an empty button according to SMenuItemStyle.
final
leadingIcon bool
If true, the icon will move to left of text, default is false
final
offset Offset?
Add an offset to the position of the menu that has been calculated from SDropdownMenuPosition. Move the top left of the dropdown relative to the top left of the button.
final
padding EdgeInsets?
The padding around the menu
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showSelected bool
If true, the selected object's preview widget will replace the text and icon on the dropdown button to show what is selected, default is false.
final

Methods

copyWith({BorderRadius? borderRadius, double? elevation, Color? color, EdgeInsets? padding, BoxConstraints? constraints, Color? barrierColor, Offset? offset, bool? hideIcon, bool? leadingIcon, bool? showSelected, bool? isSmall, BoxBorder? border}) SDropdownMenuStyle
Creates a new style object with same properties as this style object except for properties that were provided in the function.
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