GTFToastView constructor

const GTFToastView({
  1. Key? key,
  2. VoidCallback? dismiss,
  3. String text = "",
  4. String? icon,
  5. int? duration = 3000,
  6. double? iconTextMargin = 12,
  7. double radius = 4,
  8. double textToastMaxWidth = 315,
  9. double textToastMinWidth = 120,
  10. double iconToastMaxWidth = 155,
  11. double iconToastMinWidth = 155,
  12. double? fontSize = GTFFont.base,
  13. FontWeight? fontWeight = GTFFont.regular,
  14. EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(12, 10, 12, 10),
  15. Color? boxColor = GTFColor.blackToast,
  16. Color? textColor = GTFColor.white,
})

Implementation

const GTFToastView({
  Key? key,
  this.dismiss,
  this.text = "",
  this.icon,
  this.duration = 3000,
  this.iconTextMargin = 12,
  this.radius = 4,
  this.textToastMaxWidth = 315,
  this.textToastMinWidth = 120,
  this.iconToastMaxWidth = 155,
  this.iconToastMinWidth = 155,
  this.fontSize = GTFFont.base,
  this.fontWeight = GTFFont.regular,
  this.padding = const EdgeInsets.fromLTRB(12, 10, 12, 10),
  this.boxColor = GTFColor.blackToast,
  this.textColor = GTFColor.white,
}) : super(key: key);