show method

Future<T?> show(
  1. BuildContext context
)

Show the flushbar. Kicks in FlushbarStatus.IS_APPEARING state followed by FlushbarStatus.SHOWING

Implementation

Future<T?> show(BuildContext context) async {
  flushbarRoute = route.showFlushbar<T>(
    context: context,
    flushbar: this,
  ) as route.FlushbarRoute<T?>;

  return await Navigator.of(context, rootNavigator: false)
      .push(flushbarRoute as Route<T>);
}