From 12969e1fb74211c6d6d53eae9f764b121f395a04 Mon Sep 17 00:00:00 2001 From: Cameron Steffen Date: Sat, 9 Feb 2019 21:18:55 -0600 Subject: [PATCH] List.removeLast() docs error occurs if empty --- sdk/lib/core/list.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart index fff3d7a6403f..97c967294739 100644 --- a/sdk/lib/core/list.dart +++ b/sdk/lib/core/list.dart @@ -537,6 +537,8 @@ abstract class List implements EfficientLengthIterable { /** * Pops and returns the last object in this list. * + * The list must not be empty. + * * Throws an [UnsupportedError] if this is a fixed-length list. */ E removeLast();