FlushbarRoute<T> constructor

FlushbarRoute<T>({
  1. required Flushbar flushbar,
  2. RouteSettings? settings,
})

Implementation

FlushbarRoute({
  required this.flushbar,
  RouteSettings? settings,
})  : _builder = Builder(builder: (BuildContext innerContext) {
        return GestureDetector(
          onTap:
              flushbar.onTap != null ? () => flushbar.onTap!(flushbar) : null,
          child: flushbar,
        );
      }),
      _onStatusChanged = flushbar.onStatusChanged,
      super(settings: settings) {
  _configureAlignment(flushbar.flushbarPosition);
}