903 lines
24 KiB
Dart
903 lines
24 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 'online_checker_bloc.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 _$OnlineCheckerEvent {
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() started,
|
||
|
|
required TResult Function(bool isOnline) check,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? started,
|
||
|
|
TResult? Function(bool isOnline)? check,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? started,
|
||
|
|
TResult Function(bool isOnline)? check,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Started value) started,
|
||
|
|
required TResult Function(_Check value) check,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Started value)? started,
|
||
|
|
TResult? Function(_Check value)? check,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Started value)? started,
|
||
|
|
TResult Function(_Check value)? check,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class $OnlineCheckerEventCopyWith<$Res> {
|
||
|
|
factory $OnlineCheckerEventCopyWith(
|
||
|
|
OnlineCheckerEvent value, $Res Function(OnlineCheckerEvent) then) =
|
||
|
|
_$OnlineCheckerEventCopyWithImpl<$Res, OnlineCheckerEvent>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class _$OnlineCheckerEventCopyWithImpl<$Res, $Val extends OnlineCheckerEvent>
|
||
|
|
implements $OnlineCheckerEventCopyWith<$Res> {
|
||
|
|
_$OnlineCheckerEventCopyWithImpl(this._value, this._then);
|
||
|
|
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Val _value;
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Res Function($Val) _then;
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$StartedImplCopyWith<$Res> {
|
||
|
|
factory _$$StartedImplCopyWith(
|
||
|
|
_$StartedImpl value, $Res Function(_$StartedImpl) then) =
|
||
|
|
__$$StartedImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$StartedImplCopyWithImpl<$Res>
|
||
|
|
extends _$OnlineCheckerEventCopyWithImpl<$Res, _$StartedImpl>
|
||
|
|
implements _$$StartedImplCopyWith<$Res> {
|
||
|
|
__$$StartedImplCopyWithImpl(
|
||
|
|
_$StartedImpl _value, $Res Function(_$StartedImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$StartedImpl implements _Started {
|
||
|
|
const _$StartedImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'OnlineCheckerEvent.started()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$StartedImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() started,
|
||
|
|
required TResult Function(bool isOnline) check,
|
||
|
|
}) {
|
||
|
|
return started();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? started,
|
||
|
|
TResult? Function(bool isOnline)? check,
|
||
|
|
}) {
|
||
|
|
return started?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? started,
|
||
|
|
TResult Function(bool isOnline)? check,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (started != null) {
|
||
|
|
return started();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Started value) started,
|
||
|
|
required TResult Function(_Check value) check,
|
||
|
|
}) {
|
||
|
|
return started(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Started value)? started,
|
||
|
|
TResult? Function(_Check value)? check,
|
||
|
|
}) {
|
||
|
|
return started?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Started value)? started,
|
||
|
|
TResult Function(_Check value)? check,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (started != null) {
|
||
|
|
return started(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Started implements OnlineCheckerEvent {
|
||
|
|
const factory _Started() = _$StartedImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$CheckImplCopyWith<$Res> {
|
||
|
|
factory _$$CheckImplCopyWith(
|
||
|
|
_$CheckImpl value, $Res Function(_$CheckImpl) then) =
|
||
|
|
__$$CheckImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({bool isOnline});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$CheckImplCopyWithImpl<$Res>
|
||
|
|
extends _$OnlineCheckerEventCopyWithImpl<$Res, _$CheckImpl>
|
||
|
|
implements _$$CheckImplCopyWith<$Res> {
|
||
|
|
__$$CheckImplCopyWithImpl(
|
||
|
|
_$CheckImpl _value, $Res Function(_$CheckImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? isOnline = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$CheckImpl(
|
||
|
|
null == isOnline
|
||
|
|
? _value.isOnline
|
||
|
|
: isOnline // ignore: cast_nullable_to_non_nullable
|
||
|
|
as bool,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$CheckImpl implements _Check {
|
||
|
|
const _$CheckImpl(this.isOnline);
|
||
|
|
|
||
|
|
@override
|
||
|
|
final bool isOnline;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'OnlineCheckerEvent.check(isOnline: $isOnline)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$CheckImpl &&
|
||
|
|
(identical(other.isOnline, isOnline) ||
|
||
|
|
other.isOnline == isOnline));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, isOnline);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$CheckImplCopyWith<_$CheckImpl> get copyWith =>
|
||
|
|
__$$CheckImplCopyWithImpl<_$CheckImpl>(this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() started,
|
||
|
|
required TResult Function(bool isOnline) check,
|
||
|
|
}) {
|
||
|
|
return check(isOnline);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? started,
|
||
|
|
TResult? Function(bool isOnline)? check,
|
||
|
|
}) {
|
||
|
|
return check?.call(isOnline);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? started,
|
||
|
|
TResult Function(bool isOnline)? check,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (check != null) {
|
||
|
|
return check(isOnline);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Started value) started,
|
||
|
|
required TResult Function(_Check value) check,
|
||
|
|
}) {
|
||
|
|
return check(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Started value)? started,
|
||
|
|
TResult? Function(_Check value)? check,
|
||
|
|
}) {
|
||
|
|
return check?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Started value)? started,
|
||
|
|
TResult Function(_Check value)? check,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (check != null) {
|
||
|
|
return check(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Check implements OnlineCheckerEvent {
|
||
|
|
const factory _Check(final bool isOnline) = _$CheckImpl;
|
||
|
|
|
||
|
|
bool get isOnline;
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$CheckImplCopyWith<_$CheckImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
mixin _$OnlineCheckerState {
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() online,
|
||
|
|
required TResult Function() offline,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? online,
|
||
|
|
TResult? Function()? offline,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? online,
|
||
|
|
TResult Function()? offline,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Online value) online,
|
||
|
|
required TResult Function(_Offline value) offline,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Online value)? online,
|
||
|
|
TResult? Function(_Offline value)? offline,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Online value)? online,
|
||
|
|
TResult Function(_Offline value)? offline,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class $OnlineCheckerStateCopyWith<$Res> {
|
||
|
|
factory $OnlineCheckerStateCopyWith(
|
||
|
|
OnlineCheckerState value, $Res Function(OnlineCheckerState) then) =
|
||
|
|
_$OnlineCheckerStateCopyWithImpl<$Res, OnlineCheckerState>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class _$OnlineCheckerStateCopyWithImpl<$Res, $Val extends OnlineCheckerState>
|
||
|
|
implements $OnlineCheckerStateCopyWith<$Res> {
|
||
|
|
_$OnlineCheckerStateCopyWithImpl(this._value, this._then);
|
||
|
|
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Val _value;
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Res Function($Val) _then;
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$InitialImplCopyWith<$Res> {
|
||
|
|
factory _$$InitialImplCopyWith(
|
||
|
|
_$InitialImpl value, $Res Function(_$InitialImpl) then) =
|
||
|
|
__$$InitialImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$InitialImplCopyWithImpl<$Res>
|
||
|
|
extends _$OnlineCheckerStateCopyWithImpl<$Res, _$InitialImpl>
|
||
|
|
implements _$$InitialImplCopyWith<$Res> {
|
||
|
|
__$$InitialImplCopyWithImpl(
|
||
|
|
_$InitialImpl _value, $Res Function(_$InitialImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$InitialImpl implements _Initial {
|
||
|
|
const _$InitialImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'OnlineCheckerState.initial()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$InitialImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() online,
|
||
|
|
required TResult Function() offline,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return initial();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? online,
|
||
|
|
TResult? Function()? offline,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return initial?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? online,
|
||
|
|
TResult Function()? offline,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (initial != null) {
|
||
|
|
return initial();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Online value) online,
|
||
|
|
required TResult Function(_Offline value) offline,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return initial(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Online value)? online,
|
||
|
|
TResult? Function(_Offline value)? offline,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return initial?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Online value)? online,
|
||
|
|
TResult Function(_Offline value)? offline,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (initial != null) {
|
||
|
|
return initial(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Initial implements OnlineCheckerState {
|
||
|
|
const factory _Initial() = _$InitialImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$OnlineImplCopyWith<$Res> {
|
||
|
|
factory _$$OnlineImplCopyWith(
|
||
|
|
_$OnlineImpl value, $Res Function(_$OnlineImpl) then) =
|
||
|
|
__$$OnlineImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$OnlineImplCopyWithImpl<$Res>
|
||
|
|
extends _$OnlineCheckerStateCopyWithImpl<$Res, _$OnlineImpl>
|
||
|
|
implements _$$OnlineImplCopyWith<$Res> {
|
||
|
|
__$$OnlineImplCopyWithImpl(
|
||
|
|
_$OnlineImpl _value, $Res Function(_$OnlineImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$OnlineImpl implements _Online {
|
||
|
|
const _$OnlineImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'OnlineCheckerState.online()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$OnlineImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() online,
|
||
|
|
required TResult Function() offline,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return online();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? online,
|
||
|
|
TResult? Function()? offline,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return online?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? online,
|
||
|
|
TResult Function()? offline,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (online != null) {
|
||
|
|
return online();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Online value) online,
|
||
|
|
required TResult Function(_Offline value) offline,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return online(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Online value)? online,
|
||
|
|
TResult? Function(_Offline value)? offline,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return online?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Online value)? online,
|
||
|
|
TResult Function(_Offline value)? offline,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (online != null) {
|
||
|
|
return online(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Online implements OnlineCheckerState {
|
||
|
|
const factory _Online() = _$OnlineImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$OfflineImplCopyWith<$Res> {
|
||
|
|
factory _$$OfflineImplCopyWith(
|
||
|
|
_$OfflineImpl value, $Res Function(_$OfflineImpl) then) =
|
||
|
|
__$$OfflineImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$OfflineImplCopyWithImpl<$Res>
|
||
|
|
extends _$OnlineCheckerStateCopyWithImpl<$Res, _$OfflineImpl>
|
||
|
|
implements _$$OfflineImplCopyWith<$Res> {
|
||
|
|
__$$OfflineImplCopyWithImpl(
|
||
|
|
_$OfflineImpl _value, $Res Function(_$OfflineImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$OfflineImpl implements _Offline {
|
||
|
|
const _$OfflineImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'OnlineCheckerState.offline()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$OfflineImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() online,
|
||
|
|
required TResult Function() offline,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return offline();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? online,
|
||
|
|
TResult? Function()? offline,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return offline?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? online,
|
||
|
|
TResult Function()? offline,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (offline != null) {
|
||
|
|
return offline();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Online value) online,
|
||
|
|
required TResult Function(_Offline value) offline,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return offline(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Online value)? online,
|
||
|
|
TResult? Function(_Offline value)? offline,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return offline?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Online value)? online,
|
||
|
|
TResult Function(_Offline value)? offline,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (offline != null) {
|
||
|
|
return offline(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Offline implements OnlineCheckerState {
|
||
|
|
const factory _Offline() = _$OfflineImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$ErrorImplCopyWith<$Res> {
|
||
|
|
factory _$$ErrorImplCopyWith(
|
||
|
|
_$ErrorImpl value, $Res Function(_$ErrorImpl) then) =
|
||
|
|
__$$ErrorImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({String message});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$ErrorImplCopyWithImpl<$Res>
|
||
|
|
extends _$OnlineCheckerStateCopyWithImpl<$Res, _$ErrorImpl>
|
||
|
|
implements _$$ErrorImplCopyWith<$Res> {
|
||
|
|
__$$ErrorImplCopyWithImpl(
|
||
|
|
_$ErrorImpl _value, $Res Function(_$ErrorImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? message = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$ErrorImpl(
|
||
|
|
null == message
|
||
|
|
? _value.message
|
||
|
|
: message // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$ErrorImpl implements _Error {
|
||
|
|
const _$ErrorImpl(this.message);
|
||
|
|
|
||
|
|
@override
|
||
|
|
final String message;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'OnlineCheckerState.error(message: $message)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$ErrorImpl &&
|
||
|
|
(identical(other.message, message) || other.message == message));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, message);
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$ErrorImplCopyWith<_$ErrorImpl> get copyWith =>
|
||
|
|
__$$ErrorImplCopyWithImpl<_$ErrorImpl>(this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() online,
|
||
|
|
required TResult Function() offline,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return error(message);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? online,
|
||
|
|
TResult? Function()? offline,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return error?.call(message);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? online,
|
||
|
|
TResult Function()? offline,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (error != null) {
|
||
|
|
return error(message);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Online value) online,
|
||
|
|
required TResult Function(_Offline value) offline,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return error(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Online value)? online,
|
||
|
|
TResult? Function(_Offline value)? offline,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return error?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Online value)? online,
|
||
|
|
TResult Function(_Offline value)? offline,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (error != null) {
|
||
|
|
return error(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Error implements OnlineCheckerState {
|
||
|
|
const factory _Error(final String message) = _$ErrorImpl;
|
||
|
|
|
||
|
|
String get message;
|
||
|
|
|
||
|
|
/// Create a copy of OnlineCheckerState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$ErrorImplCopyWith<_$ErrorImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|