firstResultSet property

  1. @Deprecated('Use firstResultSetOrNull. Deprecated since v3.2.0.')
QueryResult get firstResultSet

Returns the first result set, or an empty placeholder if none exists.

Deprecated since v3.2.0. Prefer firstResultSetOrNull which distinguishes "0 rows" from "no cursor at all". This getter remains for backwards compatibility and will be removed in v4.0.

Implementation

@Deprecated('Use firstResultSetOrNull. Deprecated since v3.2.0.')
QueryResult get firstResultSet {
  return firstResultSetOrNull ??
      const QueryResult(columns: [], rows: [], rowCount: 0);
}