如果为空抛出异常
int nullSafeThrow({Exception? exception}) { if (this == null) { throw exception ?? ArgumentError('Value should not be null'); } return this!; }