pathBuilder<T> method

Widget pathBuilder<T>(
  1. JsonPath path,
  2. WidgetValueBuilder<T?> builder
)

Implementation

Widget pathBuilder<T>(JsonPath path, WidgetValueBuilder<T?> builder) {
  return StreamBuilder<T?>(
    key: Key("observe-$path"),
    stream: this.observePath(path),
    builder: (context, snap) => builder(context, snap.data),
    initialData: this.get(path),
  );
}