top property

T? get top

获取堆栈顶部的 ViewModel

Implementation

T? get top => _stack.isEmpty ? null : _stack.last;