CartButtonStyle class

CartButton Style

Constructors

CartButtonStyle({Color activeForegroundColor = Colors.white, Color activeBackgroundColor = Colors.blue, Color foregroundColor = Colors.black54, Color backgroundColor = Colors.white, BoxShape shape = BoxShape.rectangle, Radius? radius, BoxBorder? border, Color? shadowColor, TextStyle? textStyle, IconThemeData iconTheme = const IconThemeData(), IconData? iconPlus, IconData? iconMinus, double buttonAspectRatio = 1, double elevation = 2})
const
CartButtonStyle.fromColorScheme(ColorScheme colorScheme, {BoxShape shape = BoxShape.rectangle, Radius? radius, BoxBorder? border, TextStyle? textStyle, IconThemeData? iconTheme, IconData? iconPlus, IconData? iconMinus, double? buttonAspectRatio, double? elevation})
factory
CartButtonStyle.fromTheme(ThemeData theme, {BoxShape shape = BoxShape.rectangle, Radius? radius, BoxBorder? border, IconThemeData? iconTheme, IconData? iconPlus, IconData? iconMinus, double? buttonAspectRatio, double? elevation})
factory

Properties

activeBackgroundColor → Color
final
activeForegroundColor → Color
final
backgroundColor → Color
final
border → BoxBorder?
final
buttonAspectRatio → double
final
elevation → double
final
foregroundColor → Color
final
hashCode → int
The hash code for this object.
no setterinherited
iconMinus → IconData?
final
iconPlus → IconData?
final
iconTheme → IconThemeData
final
radius → Radius?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadowColor → Color?
final
shape → BoxShape
final
textStyle → TextStyle?
final

Methods

copyWith({Color? activeForegroundColor, Color? activeBackgroundColor, Color? foregroundColor, Color? backgroundColor, BoxShape? shape, Radius? radius, BoxBorder? border, bool noBorder = false, Color? shadowColor, TextStyle? textStyle, IconThemeData? iconTheme, IconData? iconPlus, IconData? iconMinus, double? buttonAspectRatio, double? elevation}) → CartButtonStyle
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