ToastMessage constructor

ToastMessage({
  1. required ToastType type,
  2. required String text,
  3. Duration duration = const Duration(milliseconds: 2500),
})

Implementation

ToastMessage({
  required this.type,
  required this.text,
  this.duration = const Duration(milliseconds: 2500),
});