Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: runtime/observatory/lib/src/app/view_model.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/lib/src/app/settings.dart ('k') | runtime/observatory/lib/src/cli/command.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/app/view_model.dart
diff --git a/runtime/observatory/lib/src/app/view_model.dart b/runtime/observatory/lib/src/app/view_model.dart
index e7e546f36147ff01bc17d9c2a32be5fc292e3a72..d312cb3e917343897b830fc96015e640f4bb017f 100644
--- a/runtime/observatory/lib/src/app/view_model.dart
+++ b/runtime/observatory/lib/src/app/view_model.dart
@@ -10,11 +10,11 @@ class SortedTableColumn {
static String toStringFormatter(dynamic v) {
return v != null ? v.toString() : '<null>';
}
+
final String label;
final ValueFormatter formatter;
SortedTableColumn.withFormatter(this.label, this.formatter);
- SortedTableColumn(this.label)
- : formatter = toStringFormatter;
+ SortedTableColumn(this.label) : formatter = toStringFormatter;
}
class SortedTableRow {
@@ -35,6 +35,7 @@ class SortedTable {
assert(index < columns.length);
_sortColumnIndex = index;
}
+
int get sortColumnIndex => _sortColumnIndex;
bool _sortDescending = true;
bool get sortDescending => _sortDescending;
@@ -42,7 +43,6 @@ class SortedTable {
_sortDescending = descending;
}
-
dynamic getSortKeyFor(int row, int col) {
return rows[row].values[col];
}
« no previous file with comments | « runtime/observatory/lib/src/app/settings.dart ('k') | runtime/observatory/lib/src/cli/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698