mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
14 lines
318 B
Dart
14 lines
318 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:rxdart/rxdart.dart';
|
||
|
|
||
|
class ValueStreamBuilder<T> extends StreamBuilder<T> {
|
||
|
ValueStreamBuilder({
|
||
|
super.key,
|
||
|
ValueStream<T>? stream,
|
||
|
required super.builder,
|
||
|
}) : super(
|
||
|
stream: stream,
|
||
|
initialData: stream?.value,
|
||
|
);
|
||
|
}
|