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