Skip to content

Commit 74e4fce

Browse files
authored
List.removeLast() docs error occurs if empty
1 parent b3ee960 commit 74e4fce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/lib/core/list.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ abstract class List<E> implements EfficientLengthIterable<E> {
537537
/**
538538
* Pops and returns the last object in this list.
539539
*
540+
* An error occurs if the list is empty.
541+
*
540542
* Throws an [UnsupportedError] if this is a fixed-length list.
541543
*/
542544
E removeLast();

0 commit comments

Comments
 (0)