Toast constructor
Toast({})
Implementation
Toast({
this.id,
Widget? child,
this.lifeTime,
this.transitionBuilder,
this.title,
this.description,
this.leading,
this.width,
this.duration = const Duration(milliseconds: 300),
}) : assert(!((title == null || description == null) && child == null)) {
if (child == null) {
_child = DefaultToast(toast: this);
} else {
_child = child;
}
}