This method is used to check if there is any next messages.
Future<bool> hasNextMessages() { throw UnimplementedError('hasNextMessages has not been implemented.'); }