RichbarRoute<T> constructor

RichbarRoute<T>({
  1. required Richbar richbar,
  2. RouteSettings? routeSettings,
})

Implementation

RichbarRoute({
  required this.richbar,
  RouteSettings? routeSettings,
})  : builder = Builder(builder: (BuildContext context) {
        return GestureDetector(
          onTap: richbar.onPressed != null
              ? () => richbar.onPressed!(richbar)
              : null,
          child: richbar,
        );
      }),
      onStatusChanged = richbar.onStatusChanged,
      super(settings: routeSettings) {
  _configAlignment(richbar.richbarPosition);
}