FlushbarRoute<T> constructor
FlushbarRoute<T> ({
- required Flushbar flushbar,
- 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);
}