SnackStyle class

Style for SnackWidget

Inheritance

Constructors

SnackStyle({double? height, double? maxWidth, EdgeInsetsGeometry? contentPadding, Gradient? gradient, BoxDecoration? decoration, double? elevation = 4, Color? backgroundColor, Color? foregroundColor, BorderRadius? borderRadius, AnimationConfig? enterAnimation, AnimationConfig? leaveAnimation})
const

Properties

backgroundColor Color?
final
borderRadius BorderRadius?
final
contentPadding EdgeInsetsGeometry?
final
decoration BoxDecoration?
final
elevation double?
final
enterAnimation AnimationConfig?
finalinherited
foregroundColor Color?
final
gradient Gradient?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
leaveAnimation AnimationConfig?
finalinherited
maxWidth double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bottom({bool? isAnimate}) SnackStyle
Set align bottom for animation
override
bottomIfNoAlign({bool? isAnimate}) SnackStyle
Set align bottom for animation if do not contains align
override
center({bool? isAnimate}) SnackStyle
Set align center for animation
override
centerIfNoAlign({bool? isAnimate}) SnackStyle
Set align center for animation if do not contains align
override
copyWith({Gradient? gradient, BoxDecoration? decoration, double? height, double? maxWidth, EdgeInsetsGeometry? contentPadding, Color? backgroundColor, Color? foregroundColor, double? elevation, BorderRadius? borderRadius, AnimationConfig? enterAnimation, AnimationConfig? leaveAnimation}) SnackStyle
Creates a copy of this style but with the given fields replaced with the new values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
top({bool? isAnimate}) SnackStyle
Set align top for animation
override
topIfNoAlign({bool? isAnimate}) SnackStyle
Set align style for animation if do not contains align
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(SnackStyle? a, SnackStyle? b, double t) SnackStyle
lerp two SnackStyle