statement method
Implementation
@protected
CommonPreparedStatement statement(
QueryDirection direction, {
required bool first,
}) {
CommonPreparedStatement ps() => sqlite.statement(
_msgSelect.xFormat([
getStrSeek(direction, first: first),
getStrOrder(direction),
]),
);
if (direction == QueryDirection.forward)
return first ? _forwardFirst ??= ps() : _forwardNext ??= ps();
else
return first ? _reverseFirst ??= ps() : _reverseNext ??= ps();
}