mirror of
https://github.com/TeamPiped/piped_dart.git
synced 2024-08-14 22:27:49 +00:00
104 lines
3 KiB
Dart
104 lines
3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// @dart=2.7
|
|
|
|
part of 'exception_error.dart';
|
|
|
|
// **************************************************************************
|
|
// BuiltValueGenerator
|
|
// **************************************************************************
|
|
|
|
class _$ExceptionError extends ExceptionError {
|
|
@override
|
|
final String error;
|
|
@override
|
|
final String message;
|
|
|
|
factory _$ExceptionError([void Function(ExceptionErrorBuilder) updates]) =>
|
|
(new ExceptionErrorBuilder()..update(updates)).build();
|
|
|
|
_$ExceptionError._({this.error, this.message}) : super._() {
|
|
BuiltValueNullFieldError.checkNotNull(error, 'ExceptionError', 'error');
|
|
BuiltValueNullFieldError.checkNotNull(message, 'ExceptionError', 'message');
|
|
}
|
|
|
|
@override
|
|
ExceptionError rebuild(void Function(ExceptionErrorBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
ExceptionErrorBuilder toBuilder() =>
|
|
new ExceptionErrorBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is ExceptionError &&
|
|
error == other.error &&
|
|
message == other.message;
|
|
}
|
|
|
|
@override
|
|
int get hashCode {
|
|
return $jf($jc($jc(0, error.hashCode), message.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('ExceptionError')
|
|
..add('error', error)
|
|
..add('message', message))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class ExceptionErrorBuilder
|
|
implements Builder<ExceptionError, ExceptionErrorBuilder> {
|
|
_$ExceptionError _$v;
|
|
|
|
String _error;
|
|
String get error => _$this._error;
|
|
set error(String error) => _$this._error = error;
|
|
|
|
String _message;
|
|
String get message => _$this._message;
|
|
set message(String message) => _$this._message = message;
|
|
|
|
ExceptionErrorBuilder() {
|
|
ExceptionError._initializeBuilder(this);
|
|
}
|
|
|
|
ExceptionErrorBuilder get _$this {
|
|
final $v = _$v;
|
|
if ($v != null) {
|
|
_error = $v.error;
|
|
_message = $v.message;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(ExceptionError other) {
|
|
ArgumentError.checkNotNull(other, 'other');
|
|
_$v = other as _$ExceptionError;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(ExceptionErrorBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$ExceptionError build() {
|
|
final _$result = _$v ??
|
|
new _$ExceptionError._(
|
|
error: BuiltValueNullFieldError.checkNotNull(
|
|
error, 'ExceptionError', 'error'),
|
|
message: BuiltValueNullFieldError.checkNotNull(
|
|
message, 'ExceptionError', 'message'));
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,deprecated_member_use_from_same_package,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new
|