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

Unified Diff: packages/quiver/lib/check.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/quiver/lib/async.dart ('k') | packages/quiver/lib/collection.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/quiver/lib/check.dart
diff --git a/packages/quiver/lib/check.dart b/packages/quiver/lib/check.dart
index abbefb6ee9a439e894ba5aa770df51fcbb143247..58b7a1185ceb2b3fb436dcb40c49d83cebe4a69a 100644
--- a/packages/quiver/lib/check.dart
+++ b/packages/quiver/lib/check.dart
@@ -58,7 +58,7 @@ int checkListIndex(int index, int size, {message}) {
/// Throws an [ArgumentError] if the given [reference] is `null`. Otherwise,
/// returns the [reference] parameter.
-dynamic checkNotNull(reference, {message}) {
+T checkNotNull<T>(T reference, {message}) {
if (reference == null) {
throw new ArgumentError(_resolveMessage(message, 'null pointer'));
}
« no previous file with comments | « packages/quiver/lib/async.dart ('k') | packages/quiver/lib/collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698