| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | |
| 3 | part of 'aircraft_with_age.dart'; |
| 4 | |
| 5 | // ************************************************************************** |
| 6 | // BuiltValueGenerator |
| 7 | // ************************************************************************** |
| 8 | |
| 9 | class _$AircraftWithAge extends AircraftWithAge |
| 10 | @override |
| 11 | final String aircraftName; |
| 12 | @override |
| 13 | final String tailNumber; |
| 14 | @override |
| 15 | final num? age; |
| 16 | @override |
| 17 | final String? image; |
| 18 | |
| 19 | factory _$AircraftWithAge([void |
| 20 | (AircraftWithAgeBuilder()..update(updates)). |
| 21 | |
| 22 | _$AircraftWithAge._( |
| 23 | {required this.aircraftName, |
| 24 | required this.tailNumber, |
| 25 | this.age, |
| 26 | this.image}) |
| 27 | : super._(); |
| 28 | @override |
| 29 | AircraftWithAge rebuild(void |
| 30 | (toBuilder()..update(updates)). |
| 31 | |
| 32 | @override |
| 33 | AircraftWithAgeBuilder toBuilder() => |
| 34 | |
| 35 | @override |
| 36 | bool operator ==(Object |
| 37 | if (identical(other, this |
| 38 | return other is AircraftWithAge |
| 39 | aircraftName == other.aircraftName && |
| 40 | tailNumber == other.tailNumber && |
| 41 | age == other.age && |
| 42 | image == other.image; |
| 43 | } |
| 44 | |
| 45 | @override |
| 46 | int get hashCode { |
| 47 | var _$hash = 0; |
| 48 | _$hash = $jc(_$hash, aircraftName. |
| 49 | _$hash = $jc(_$hash, tailNumber. |
| 50 | _$hash = $jc(_$hash, age. |
| 51 | _$hash = $jc(_$hash, image. |
| 52 | _$hash = $jf(_$hash); |
| 53 | return _$hash; |
| 54 | } |
| 55 | |
| 56 | @override |
| 57 | String toString() { |
| 58 | return (newBuiltValueToStringHelper(r'AircraftWithAge') |
| 59 | ..add('aircraftName', aircraftName) |
| 60 | ..add('tailNumber', tailNumber) |
| 61 | ..add('age', age) |
| 62 | ..add('image', image)) |
| 63 | .toString(); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | class AircraftWithAgeBuilder |
| 68 | implements Builder<AircraftWithAge, |
| 69 | _$AircraftWithAge? _$v; |
| 70 | |
| 71 | String? _aircraftName; |
| 72 | String? get aircraftName => _$this |
| 73 | set aircraftName(String? |
| 74 | |
| 75 | String? _tailNumber; |
| 76 | String? get tailNumber => _$this |
| 77 | set tailNumber(String? |
| 78 | |
| 79 | num? _age; |
| 80 | num? get age => _$this |
| 81 | set age(num? |
| 82 | |
| 83 | String? _image; |
| 84 | String? get image => _$this |
| 85 | set image(String? |
| 86 | |
| 87 | AircraftWithAgeBuilder() { |
| 88 | AircraftWithAge._defaults(this |
| 89 | } |
| 90 | |
| 91 | AircraftWithAgeBuilder get _$this { |
| 92 | final $v = _$v; |
| 93 | if ($v != null) { |
| 94 | _aircraftName = $v.aircraftName; |
| 95 | _tailNumber = $v.tailNumber; |
| 96 | _age = $v.age; |
| 97 | _image = $v.image; |
| 98 | _$v = null; |
| 99 | } |
| 100 | return this; |
| 101 | } |
| 102 | |
| 103 | @override |
| 104 | void replace(AircraftWithAge |
| 105 | _$v = other as _$AircraftWithAge; |
| 106 | } |
| 107 | |
| 108 | @override |
| 109 | void update(void |
| 110 | if (updates != null) updates |
| 111 | } |
| 112 | |
| 113 | @override |
| 114 | AircraftWithAge build() => |
| 115 | |
| 116 | _$AircraftWithAge _build() { |
| 117 | final _$result = _$v ?? |
| 118 | _$AircraftWithAge._( |
| 119 | aircraftName: BuiltValueNullFieldError.checkNotNull( |
| 120 | aircraftName, r'AircraftWithAge', 'aircraftName'), |
| 121 | tailNumber: BuiltValueNullFieldError.checkNotNull( |
| 122 | tailNumber, r'AircraftWithAge', 'tailNumber'), |
| 123 | age: age, |
| 124 | image: image, |
| 125 | ); |
| 126 | replace(_$result); |
| 127 | return _$result; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | // ignore_for_file: deprecated_member_use_from_same_package,type=lint |