imageStream property

Stream<String?> imageStream

Channel image as a stream.

The channel needs to be initialized.

If an image is provided it will be set on extraData with a key of 'image'.

For example:

final user = User(id: 'id', image: 'https://getstream.io/image.png');
print(user.image == user.extraData['image']); // true

Implementation

Stream<String?> get imageStream {
  _checkInitialized();
  return extraDataStream.map((it) => it['image'] as String?);
}