SubZeroToastConfig constructor

const SubZeroToastConfig({
  1. required String message,
  2. SubZeroToastType type = SubZeroToastType.defaultType,
  3. SubZeroToastPosition position = SubZeroToastPosition.bottom,
  4. SubZeroToastActionMode actionMode = SubZeroToastActionMode.icon,
  5. Duration duration = const Duration(seconds: 4),
  6. String? actionLabel,
  7. VoidCallback? onAction,
  8. IconData? leadingIcon,
  9. bool showCloseButton = true,
  10. double? maxWidth,
})

Implementation

const SubZeroToastConfig({
  required this.message,
  this.type = SubZeroToastType.defaultType,
  this.position = SubZeroToastPosition.bottom,
  this.actionMode = SubZeroToastActionMode.icon,
  this.duration = const Duration(seconds: 4),
  this.actionLabel,
  this.onAction,
  this.leadingIcon,
  this.showCloseButton = true,
  this.maxWidth,
});