ToastWidget constructor

const ToastWidget({
  1. Key? key,
  2. required Widget widget,
  3. required int gravity,
  4. required Duration duration,
})

Implementation

const ToastWidget({
  Key? key,
  required this.widget,
  required this.gravity,
  required this.duration,
}) : super(key: key);