151 lines
4.6 KiB
Dart
151 lines
4.6 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of '../file.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
T _$identity<T>(T value) => value;
|
|
|
|
final _privateConstructorUsedError = UnsupportedError(
|
|
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
|
|
/// @nodoc
|
|
mixin _$FileInfo {
|
|
int get size => throw _privateConstructorUsedError;
|
|
DateTime get lastModified => throw _privateConstructorUsedError;
|
|
|
|
@JsonKey(ignore: true)
|
|
$FileInfoCopyWith<FileInfo> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $FileInfoCopyWith<$Res> {
|
|
factory $FileInfoCopyWith(FileInfo value, $Res Function(FileInfo) then) =
|
|
_$FileInfoCopyWithImpl<$Res, FileInfo>;
|
|
@useResult
|
|
$Res call({int size, DateTime lastModified});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$FileInfoCopyWithImpl<$Res, $Val extends FileInfo>
|
|
implements $FileInfoCopyWith<$Res> {
|
|
_$FileInfoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? size = null,
|
|
Object? lastModified = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
size: null == size
|
|
? _value.size
|
|
: size // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
lastModified: null == lastModified
|
|
? _value.lastModified
|
|
: lastModified // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$FileInfoImplCopyWith<$Res>
|
|
implements $FileInfoCopyWith<$Res> {
|
|
factory _$$FileInfoImplCopyWith(
|
|
_$FileInfoImpl value, $Res Function(_$FileInfoImpl) then) =
|
|
__$$FileInfoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({int size, DateTime lastModified});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$FileInfoImplCopyWithImpl<$Res>
|
|
extends _$FileInfoCopyWithImpl<$Res, _$FileInfoImpl>
|
|
implements _$$FileInfoImplCopyWith<$Res> {
|
|
__$$FileInfoImplCopyWithImpl(
|
|
_$FileInfoImpl _value, $Res Function(_$FileInfoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? size = null,
|
|
Object? lastModified = null,
|
|
}) {
|
|
return _then(_$FileInfoImpl(
|
|
size: null == size
|
|
? _value.size
|
|
: size // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
lastModified: null == lastModified
|
|
? _value.lastModified
|
|
: lastModified // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$FileInfoImpl implements _FileInfo {
|
|
const _$FileInfoImpl({required this.size, required this.lastModified});
|
|
|
|
@override
|
|
final int size;
|
|
@override
|
|
final DateTime lastModified;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'FileInfo(size: $size, lastModified: $lastModified)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$FileInfoImpl &&
|
|
(identical(other.size, size) || other.size == size) &&
|
|
(identical(other.lastModified, lastModified) ||
|
|
other.lastModified == lastModified));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, size, lastModified);
|
|
|
|
@JsonKey(ignore: true)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$FileInfoImplCopyWith<_$FileInfoImpl> get copyWith =>
|
|
__$$FileInfoImplCopyWithImpl<_$FileInfoImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _FileInfo implements FileInfo {
|
|
const factory _FileInfo(
|
|
{required final int size,
|
|
required final DateTime lastModified}) = _$FileInfoImpl;
|
|
|
|
@override
|
|
int get size;
|
|
@override
|
|
DateTime get lastModified;
|
|
@override
|
|
@JsonKey(ignore: true)
|
|
_$$FileInfoImplCopyWith<_$FileInfoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|