RealtimeBuilder<T> constructor

const RealtimeBuilder<T>({
  1. Key? key,
  2. MongoRealtime? instance,
  3. required String stream,
  4. int? limit,
  5. T fromMap(
    1. Map<String, dynamic> doc
    )?,
  6. bool filter(
    1. T value
    )?,
  7. Comparable sortBy(
    1. T value
    )?,
  8. bool? sortOrderDesc,
  9. bool? reverse,
  10. Widget errorBuilder(
    1. Object? error
    )?,
  11. Widget loadingBuilder()?,
  12. Widget emptyBuilder()?,
  13. required Widget child(
    1. List<T> list
    ),
})

Implementation

const RealtimeBuilder({
  super.key,
  this.instance,
  required this.stream,
  this.limit,
  this.fromMap,
  this.filter,
  this.sortBy,
  this.sortOrderDesc,
  this.reverse,
  this.errorBuilder,
  this.loadingBuilder,
  this.emptyBuilder,
  required this.child,
});