|
|
|
|
|
|
if ((_imageStream == null ? null : _imageStream.key) == (newStream == null ? null : newStream.key)) |
|
|
|
return; |
|
|
|
|
|
|
|
if (_isListeningToStream) |
|
|
|
if (_isListeningToStream && _imageStream != null) |
|
|
|
_imageStream.removeListener(_handleImageChanged); |
|
|
|
|
|
|
|
if (!((Image<T>) widget).gaplessPlayback) { |
|
|
|
|
|
|
if (_isListeningToStream) |
|
|
|
if (_isListeningToStream && _imageStream != null) |
|
|
|
_imageStream.addListener(_handleImageChanged); |
|
|
|
} |
|
|
|
} |
|
|
|