removeLastOrNull method

E? removeLastOrNull()

移除最后的元素,兼容异常情况

Implementation

E? removeLastOrNull() => length > 0 ? removeLast() : null;