call method

Widget call(
  1. Widget builder(
    1. BuildContext context,
    2. T data
    ), {
  2. Key? key,
})

Creates an inline reactive widget bound 1:1 to this Bloom node.

  • builder: Pure widget construction callback receiving BuildContext and current data payload.
  • key: Optional widget key.

Requires:

Ensures:

  • Returns a lightweight reactive Widget bound 1:1 to _bloom.

Examples

countBloom.build((context, count) => Text('Count: $count'));

Implementation

@pragma('vm:prefer-inline')
Widget call(
  Widget Function(BuildContext context, T data) builder, {
  Key? key,
}) =>
    _InlineSingleBloomWidget<T>(
      key: key,
      bloom: _bloom,
      builder: builder,
    );