ComToastConfig class
Constructors
-
ComToastConfig({ComToastType type = ComToastType.normal, ComToastPosition position = ComToastPosition.center, Duration duration = const Duration(milliseconds: 1500), Color? backgroundColor, Color? textColor, double fontSize = 14.0, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0), double borderRadius = 12.0, double maxWidth = 0.85, int animationDuration = 300, bool clickThrough = true, bool showShadow = true, Color shadowColor = const Color(0x1A000000), Offset shadowOffset = const Offset(0, 4), double shadowBlurRadius = 8.0, IconData? icon, Widget? iconWidget, double iconSize = 20.0, Color? iconColor, double iconSpacing = 8.0, Widget builder(BuildContext context)?, double topMargin = 50.0, double bottomMargin = 100.0})
-
const
Methods
-
copyWith({ComToastType? type, ComToastPosition? position, Duration? duration, Color? backgroundColor, Color? textColor, double? fontSize, EdgeInsets? padding, double? borderRadius, double? maxWidth, int? animationDuration, bool? clickThrough, bool? showShadow, Color? shadowColor, Offset? shadowOffset, double? shadowBlurRadius, IconData? icon, Widget? iconWidget, double? iconSize, Color? iconColor, double? iconSpacing, Widget builder(BuildContext context)?, double? topMargin, double? bottomMargin})
→ ComToastConfig
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited