Snacky class

Constructors

Snacky({required String title, SnackyType type = SnackyType.info, String? subtitle, Widget leadingWidgetBuilder(BuildContext, CancelableSnacky)?, Widget trailingWidgetBuilder(BuildContext, CancelableSnacky)?, VoidCallback? onTap, bool canBeClosed = false, Duration showDuration = const Duration(seconds: 4), Duration transitionDuration = const Duration(milliseconds: 250), Curve transitionCurve = Curves.easeInOut, SnackyLocation location = SnackyLocation.top})
const
Snacky.openUntillClosed({required String title, SnackyType type = SnackyType.info, String? subtitle, Widget leadingWidgetBuilder(BuildContext, CancelableSnacky)?, Widget trailingWidgetBuilder(BuildContext, CancelableSnacky)?, VoidCallback? onTap, bool canBeClosed = false, Duration showDuration = const Duration(seconds: 4), Duration transitionDuration = const Duration(milliseconds: 250), Curve transitionCurve = Curves.easeInOut, SnackyLocation location = SnackyLocation.top})
const

Properties

canBeClosed bool
final
hashCode int
The hash code for this object.
no setterinherited
leadingWidgetBuilder → (Widget Function(BuildContext, CancelableSnacky)?)
final
location SnackyLocation
final
onTap VoidCallback?
final
openUntillClosed bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration Duration
final
subtitle String?
final
title String
final
trailingWidgetBuilder → (Widget Function(BuildContext, CancelableSnacky)?)
final
transitionCurve Curve
final
transitionDuration Duration
final
type SnackyType
final

Methods

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