@override Stack get resetForeground { if (_foregroundStack.isEmpty) { throw StateError('Foreground color stack is empty'); } return _copyWith( foregroundStack: List.of(_foregroundStack)..removeLast(), ); }