ToastWidget constructor

const ToastWidget({
  1. Key? key,
  2. required String text,
  3. Duration duration = const Duration(seconds: 3),
  4. Duration transitionDuration = const Duration(milliseconds: 250),
})

Implementation

const ToastWidget({
  super.key,
  required this.text,
  this.duration = const Duration(seconds: 3),
  this.transitionDuration = const Duration(milliseconds: 250),
});