MuqSnackbar class final

Constructors

MuqSnackbar({Duration duration = const Duration(seconds: 4), MuqPosition position = MuqPosition.top, bool autoDismiss = true, String? title, String? content, Duration animationDuration = const Duration(milliseconds: 500), Curve? animationCurve, WidgetBuilder? builder, BorderRadiusGeometry? borderRadius, Color? backgroundColor = Colors.white, BorderSide? border, Widget? leading, Widget? trailing, List<BoxShadow>? shadows, EdgeInsetsGeometry? padding = const EdgeInsets.all(16), EdgeInsetsGeometry? margin = const EdgeInsets.symmetric(horizontal: 16), CloseBuilder? closeBuilder})
Constructor of MuqSnackbar

Properties

animationCurve Curve?
Animation curve of snackbar
final
animationDuration Duration
Animation duration of snackbar
final
autoDismiss bool
Set true to dismiss snackbar automatically
final
backgroundColor Color?
Background color of snackbar
final
border BorderSide?
Border of snackbar
final
borderRadius BorderRadiusGeometry?
BorderRadius of snackbar
final
builder WidgetBuilder?
WidgetBuilder of snackbar
final
closeBuilder CloseBuilder?
Close function of snackbar
final
content String?
Snackbar message widget
final
duration Duration
Duration of snackbar when autoDismiss is true
final
hashCode int
The hash code for this object.
no setterinherited
info ↔ _SnackBarInfo
Info on each snackbar
latefinal
leading Widget?
Leading widget of snackbar
final
margin EdgeInsetsGeometry?
Card margin of snackbar
final
padding EdgeInsetsGeometry?
Card padding of snackbar
final
position MuqPosition
Snackbar position on screen
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows List<BoxShadow>?
Card shadow of snackbar
final
title String?
Snackbar title widget
final
trailing Widget?
Trailing widget of snackbar
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

removeAll() → void