1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-25 23:58:44 +00:00
Files
samples/desktop_photo_search/fluent_ui/lib/src/unsplash/urls.g.dart
Eric Windmill 2999d738b8 Dart 3.9 / Flutter 3.35 [first LLM release] (#2714)
I got carried away with Gemini and basically rewrote CI and the release
process for the new LLM reality. This work was largely completed by
Gemini.

- Bump all SDK versions to the current beta (3.9.0-0)
- Run `flutter channel beta`
- Wrote `ci_script.dart` to replace the bash scripts
- Converted repository to pub workspace #2499 
- Added llm.md and release.md
- Added redirect for deprecated Samples Index

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).
2025-08-14 12:26:24 -07:00

276 lines
6.5 KiB
Dart

// Copyright 2019 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'urls.dart';
// **************************************************************************
// BuiltValueGenerator
// **************************************************************************
Serializer<Urls> _$urlsSerializer = new _$UrlsSerializer();
class _$UrlsSerializer implements StructuredSerializer<Urls> {
@override
final Iterable<Type> types = const [Urls, _$Urls];
@override
final String wireName = 'Urls';
@override
Iterable<Object?> serialize(
Serializers serializers,
Urls object, {
FullType specifiedType = FullType.unspecified,
}) {
final result = <Object?>[];
Object? value;
value = object.raw;
if (value != null) {
result
..add('raw')
..add(
serializers.serialize(
value,
specifiedType: const FullType(String),
),
);
}
value = object.full;
if (value != null) {
result
..add('full')
..add(
serializers.serialize(
value,
specifiedType: const FullType(String),
),
);
}
value = object.regular;
if (value != null) {
result
..add('regular')
..add(
serializers.serialize(
value,
specifiedType: const FullType(String),
),
);
}
value = object.small;
if (value != null) {
result
..add('small')
..add(
serializers.serialize(
value,
specifiedType: const FullType(String),
),
);
}
value = object.thumb;
if (value != null) {
result
..add('thumb')
..add(
serializers.serialize(
value,
specifiedType: const FullType(String),
),
);
}
return result;
}
@override
Urls deserialize(
Serializers serializers,
Iterable<Object?> serialized, {
FullType specifiedType = FullType.unspecified,
}) {
final result = new UrlsBuilder();
final iterator = serialized.iterator;
while (iterator.moveNext()) {
final key = iterator.current! as String;
iterator.moveNext();
final Object? value = iterator.current;
switch (key) {
case 'raw':
result.raw =
serializers.deserialize(
value,
specifiedType: const FullType(String),
)
as String?;
break;
case 'full':
result.full =
serializers.deserialize(
value,
specifiedType: const FullType(String),
)
as String?;
break;
case 'regular':
result.regular =
serializers.deserialize(
value,
specifiedType: const FullType(String),
)
as String?;
break;
case 'small':
result.small =
serializers.deserialize(
value,
specifiedType: const FullType(String),
)
as String?;
break;
case 'thumb':
result.thumb =
serializers.deserialize(
value,
specifiedType: const FullType(String),
)
as String?;
break;
}
}
return result.build();
}
}
class _$Urls extends Urls {
@override
final String? raw;
@override
final String? full;
@override
final String? regular;
@override
final String? small;
@override
final String? thumb;
factory _$Urls([void Function(UrlsBuilder)? updates]) =>
(new UrlsBuilder()..update(updates))._build();
_$Urls._({this.raw, this.full, this.regular, this.small, this.thumb})
: super._();
@override
Urls rebuild(void Function(UrlsBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
UrlsBuilder toBuilder() => new UrlsBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is Urls &&
raw == other.raw &&
full == other.full &&
regular == other.regular &&
small == other.small &&
thumb == other.thumb;
}
@override
int get hashCode {
var _$hash = 0;
_$hash = $jc(_$hash, raw.hashCode);
_$hash = $jc(_$hash, full.hashCode);
_$hash = $jc(_$hash, regular.hashCode);
_$hash = $jc(_$hash, small.hashCode);
_$hash = $jc(_$hash, thumb.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@override
String toString() {
return (newBuiltValueToStringHelper(r'Urls')
..add('raw', raw)
..add('full', full)
..add('regular', regular)
..add('small', small)
..add('thumb', thumb))
.toString();
}
}
class UrlsBuilder implements Builder<Urls, UrlsBuilder> {
_$Urls? _$v;
String? _raw;
String? get raw => _$this._raw;
set raw(String? raw) => _$this._raw = raw;
String? _full;
String? get full => _$this._full;
set full(String? full) => _$this._full = full;
String? _regular;
String? get regular => _$this._regular;
set regular(String? regular) => _$this._regular = regular;
String? _small;
String? get small => _$this._small;
set small(String? small) => _$this._small = small;
String? _thumb;
String? get thumb => _$this._thumb;
set thumb(String? thumb) => _$this._thumb = thumb;
UrlsBuilder();
UrlsBuilder get _$this {
final $v = _$v;
if ($v != null) {
_raw = $v.raw;
_full = $v.full;
_regular = $v.regular;
_small = $v.small;
_thumb = $v.thumb;
_$v = null;
}
return this;
}
@override
void replace(Urls other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$Urls;
}
@override
void update(void Function(UrlsBuilder)? updates) {
if (updates != null) updates(this);
}
@override
Urls build() => _build();
_$Urls _build() {
final _$result =
_$v ??
new _$Urls._(
raw: raw,
full: full,
regular: regular,
small: small,
thumb: thumb,
);
replace(_$result);
return _$result;
}
}
// ignore_for_file: deprecated_member_use_from_same_package,type=lint