Reactive<T> constructor

Reactive<T>({
  1. required Stream<T> stream,
  2. required Component builder(
    1. T
    ),
  3. T? initial,
  4. String? id,
  5. Map<String, String>? attributes,
  6. Map<String, dynamic>? style,
  7. String? className,
})

Reactive is a component that is used with Stream to render components based on the data emitted by the stream.

Implementation

Reactive({
  required this.stream,
  required this.builder,
  this.initial,
  super.id,
  super.attributes,
  super.style,
  super.className,
}) : super(tag: 'div');