Toast constructor

const Toast({
  1. Key? key,
  2. ToastLocation location = ToastLocation.bottomLeft,
  3. Duration showDuration = const Duration(seconds: 3),
  4. bool dismissible = true,
  5. Duration entryDuration = const Duration(milliseconds: 500),
  6. required Widget builder(
    1. BuildContext context
    ),
})

Implementation

const Toast({
  super.key,
  this.location = ToastLocation.bottomLeft,
  this.showDuration = const Duration(seconds: 3),
  this.dismissible = true,
  this.entryDuration = const Duration(milliseconds: 500),
  required this.builder,
});