Toast constructor

Toast({
  1. Key? key,
  2. required Widget child,
  3. Color? backgroundColor,
  4. Color? textColor,
})

Implementation

Toast(
    {super.key,
    required this.child,
    Color? backgroundColor,
    Color? textColor})
    : backgroundColor = backgroundColor ?? Colors.grey,
      textColor = textColor ?? Colors.white;