stream property

  1. @override
Stream<List<DTO>> Function(User user) get stream
override

Returns a stream of data for the authenticated user.

Implementation

@override
Stream<List<DTO>> Function(User user) get stream =>
    (user) =>
        streamBuilder?.call(user, api, this) ??
        api.streamByQueryWithConverter(
          whereDescription: '${api.userIdFieldName} == ${user.uid}',
          collectionReferenceQuery: (collectionReference) =>
              collectionReference.where(
                api.userIdFieldName,
                isEqualTo: user.uid,
              ),
        );