ToastTheme class
Constructors
- ToastTheme.new({TextStyle style = const TextStyle(fontSize: 15, fontWeight: FontWeight.normal, color: Colors.white), Color backgroundColor = const Color(0xFF757575), double radius = 5, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4), AnimationBuilder animationBuilder = _defaultAnimationBuilder, ToastPosition position = ToastPosition.bottom, Duration animationDuration = const Duration(milliseconds: 200), Curve animationCurve = Curves.easeIn, Duration duration = const Duration(milliseconds: 2000), bool onlyOne = true})
Properties
- animationBuilder → AnimationBuilder
-
final
- animationCurve → Curve
-
final
- animationDuration → Duration
-
final
- backgroundColor → Color
-
final
- duration → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onlyOne → bool
-
final
- padding → EdgeInsets
-
final
- position → ToastPosition
-
final
- radius → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle
-
final
Methods
-
copyWith(
{TextStyle? style, Color? backgroundColor, double? radius, EdgeInsets? padding, ToastPosition? position, AnimationBuilder? animationBuilder, Duration? animationDuration, Curve? animationCurve, Duration? duration, bool? onlyOne}) → ToastTheme -
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