dropLast method Null safety
- [int count = 1]
Drop the last count
characters from the range.
Retracts the end of the range to before the count
last characters
of the range, or as many as are available if
there are fewer than count
characters in the current range.
The count
must not be negative.
If it is zero, the range is not changed.
Returns true
if there are count
characters in the range,
and false
if there are fewer.
Implementation
bool dropLast([int count = 1]);