primaryText property

String get primaryText

Implementation

String get primaryText {
  final rowsAffected = statementRowsAffected;
  if (rowsAffected != null) {
    return rowsAffected < 0 ? 'Statement executed.' : 'Statement executed. Rows affected: $rowsAffected';
  }
  final count = rowCount;
  if (count == null) {
    return loadedByteCount > 0 ? 'Loading · ${_formatBytes(loadedByteCount)}' : 'Loading';
  }
  final bytesLabel = loadedByteCount > 0 ? ' · ${_formatBytes(loadedByteCount)}' : '';
  return isSql ? 'Rows: $count$bytesLabel' : 'Row Count: $count$bytesLabel';
}