SnapshotBuilder<T> constructor

const SnapshotBuilder<T>({
  1. Key? key,
  2. required BroadcastStream<T> broadcast,
  3. required Widget onData(
    1. T
    ),
  4. Widget? onLoading,
  5. Widget onError(
    1. dynamic
    )?,
  6. T? initialData,
  7. Duration? animationDuration,
  8. bool isAnimated = true,
})

Implementation

const SnapshotBuilder({
  Key? key,
  required this.broadcast,
  required this.onData,
  this.onLoading,
  this.onError,
  this.initialData,
  this.animationDuration,
  this.isAnimated = true,
}) : super(key: key);