image property

  1. @JsonKey(ignore: true)
String? image

Shortcut for user image.

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

@JsonKey(ignore: true)
String? get image => extraData['image'] as String?;