buildContext method

Widget buildContext({
  1. WidgetContextDataBuilder<T>? builder,
  2. T? initialValue,
  3. Key? key,
})

Implementation

Widget buildContext(
    {WidgetContextDataBuilder<T>? builder, T? initialValue, Key? key}) {
  return StreamBuilder<T>(
    key: key,
    stream: Stream.fromFuture(this),
    initialData: initialValue,
    builder: (context, snap) =>
        snap.render(context, successFn: ((data) => builder!(context, data))),
  );
}