ToastStyle class
Style for ToastWidget
- Inheritance
-
- Object
- AnimatedOverlayStyle
- ToastStyle
Constructors
- ToastStyle({Color? backgroundColor, Color? foregroundColor, BorderRadius? borderRadius, Axis? direction, TextStyle? textStyle, IconThemeData? iconTheme, EdgeInsetsGeometry? iconPadding, AnimationConfig? enterAnimation, AnimationConfig? leaveAnimation})
-
const
- ToastStyle.vertical({Color? backgroundColor, Color? foregroundColor, BorderRadius? borderRadius, TextStyle? textStyle, IconThemeData? iconTheme, EdgeInsetsGeometry? iconPadding, AnimationConfig? enterAnimation, AnimationConfig? leaveAnimation})
-
const
Properties
- backgroundColor → Color?
-
final
- borderRadius → BorderRadius?
-
final
- direction → Axis?
-
final
- enterAnimation → AnimationConfig?
-
finalinherited
- foregroundColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconPadding → EdgeInsetsGeometry?
-
final
- iconTheme → IconThemeData?
-
final
- leaveAnimation → AnimationConfig?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
final
Methods
-
bottom(
{bool? isAnimate}) → ToastStyle -
Set align bottom for animation
override
-
bottomIfNoAlign(
{bool? isAnimate}) → ToastStyle -
Set align bottom for animation if do not contains align
override
-
center(
{bool? isAnimate}) → ToastStyle -
Set align center for animation
override
-
centerIfNoAlign(
{bool? isAnimate}) → ToastStyle -
Set align center for animation if do not contains align
override
-
copyWith(
{Color? backgroundColor, Color? foregroundColor, BorderRadius? borderRadius, Axis? direction, TextStyle? textStyle, IconThemeData? iconTheme, EdgeInsetsGeometry? iconPadding, AnimationConfig? enterAnimation, AnimationConfig? leaveAnimation}) → ToastStyle -
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}) → ToastStyle -
Set align top for animation
override
-
topIfNoAlign(
{bool? isAnimate}) → ToastStyle -
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(
ToastStyle? a, ToastStyle? b, double t) → ToastStyle - lerp two ToastStyle