SMenuStyle class

Style of the side menu. Styles contain colors, borders, alignments, padding

Constructors

SMenuStyle({Color barrierColor = Colors.black26, Color? backgroundColor, BoxBorder? border, EdgeInsets? padding, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(15)), CrossAxisAlignment? alignment})
const

Properties

alignment CrossAxisAlignment?
Alignment of widgets within the menu
final
backgroundColor Color?
The background color of the menu
final
barrierColor Color
For slide menu, 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
hashCode int
The hash code for this object.
no setterinherited
padding EdgeInsets?
The padding around the menu
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({BorderRadius? borderRadius, EdgeInsets? padding, BoxBorder? border, CrossAxisAlignment? alignment, Color? barrierColor, Color? backgroundColor}) SMenuStyle
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