AppToast constructor

const AppToast({
  1. Key? key,
  2. required String message,
  3. IconData? icon,
  4. AppToastType type = AppToastType.info,
  5. Duration duration = const Duration(seconds: 3),
  6. AppToastPosition position = AppToastPosition.bottom,
  7. VoidCallback? action,
  8. String? actionLabel,
})

Implementation

const AppToast({
  super.key,
  required this.message,
  this.icon,
  this.type = AppToastType.info,
  this.duration = const Duration(seconds: 3),
  this.position = AppToastPosition.bottom,
  this.action,
  this.actionLabel,
});