ErrorToast constructor

const ErrorToast({
  1. Key? key,
  2. Color backgroundColor = ToastColors.errorToastBGColor,
  3. TextStyle textStyle = ToastTextStyle.defaultTextStyle,
  4. String message = " ",
  5. int duration = ToastLength.short,
  6. VoidCallback? onToasted,
})

Implementation

const ErrorToast(
    {Key? key,
    this.backgroundColor = ToastColors.errorToastBGColor,
    this.textStyle = ToastTextStyle.defaultTextStyle,
    this.message = " ",
    this.duration = ToastLength.short,
    this.onToasted})
    : super(key: key);