build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the widget tree for the reactive app bar.

This method constructs a StreamBuilder that listens to the specified stream and uses the builder function to update the app bar in response to stream events.

Implementation

@override
Widget build(BuildContext context) {
  return StreamBuilder(
    stream: stream,
    builder: (context, snapshot) {
      return builder(context);
    },
  );
}