ToastChild constructor

const ToastChild({
  1. Key? key,
  2. required String msg,
  3. required double verticalOffset,
  4. Color? background,
  5. double? radius,
  6. Image? leading,
  7. ToastGravity? gravity,
  8. TextStyle? textStyle,
})

Implementation

const ToastChild({
  Key? key,
  required this.msg,
  required this.verticalOffset,
  this.background,
  this.radius,
  this.leading,
  this.gravity,
  this.textStyle,
}) : super(key: key);