LitSnackbar class abstract

A custom snackbar widget.

The snackbar will resemble a notification which will e.g. be shown on the top right of the device's screen without the need to be shown using the default showSnackbar method.

The default values can be used on its implementations.

Inheritance
Implementers

Constructors

LitSnackbar({required LitSnackbarController? controller})
Creates a LitSnackbar.
const

Properties

controller LitSnackbarController?
The controller providing the show and dismiss logic.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() Element
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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

Constants

defaultAlignment → const Alignment
The default alignment is set to Alignment.topRight.
defaultBorderRadius → const BorderRadius
LitSnackbars have rounded corners by default.
defaultBoxShadow → const List<BoxShadow>
LitSnackbars have a box shadow by default.
defaultHeight → const double
The default height of a snackbar.
defaultPadding → const EdgeInsets
The default paddding.
defaultSolidGradientBackground → const LinearGradient
The default gradient if the snackbar's background should be solid.
defaultTransparentGradientBackground → const LinearGradient
The default gradient if the snackbar's background should be transparent.
defaultWidth → const double
The default width of a snackbar.