ToastController constructor
Implementation
ToastController({@required this.state}) {
assert(
Platform.isAndroid,
"Oh no! 'Toasts' are for Android devices only! "
"Please consider using another cross-platform "
"alert widget :/");
Timer.periodic(Duration(milliseconds: 2750), (Timer t) => _checkQueue());
}