ToastMessageBarRoute<T> constructor
ToastMessageBarRoute<T> ({
- required ToastMessageBar toastMessageBar,
- RouteSettings? settings,
Implementation
ToastMessageBarRoute({
required this.toastMessageBar,
RouteSettings? settings,
}) : _builder = Builder(builder: (BuildContext innerContext) {
return GestureDetector(
onTap: toastMessageBar.onTap != null
? () => toastMessageBar.onTap!(toastMessageBar)
: null,
child: toastMessageBar,
);
}),
_onStatusChanged = toastMessageBar.onStatusChanged,
super(settings: settings) {
_configureAlignment(toastMessageBar.toastMessageBarPosition);
}