ToastMessageBarRoute<T> constructor

ToastMessageBarRoute<T>({
  1. required ToastMessageBar toastMessageBar,
  2. 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);
}