GTFToastView constructor
const
GTFToastView({
- Key? key,
- VoidCallback? dismiss,
- String text = "",
- String? icon,
- int? duration = 3000,
- double? iconTextMargin = 12,
- double radius = 4,
- double textToastMaxWidth = 315,
- double textToastMinWidth = 120,
- double iconToastMaxWidth = 155,
- double iconToastMinWidth = 155,
- double? fontSize = GTFFont.base,
- FontWeight? fontWeight = GTFFont.regular,
- EdgeInsetsGeometry? padding = const EdgeInsets.fromLTRB(12, 10, 12, 10),
- Color? boxColor = GTFColor.blackToast,
- 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);