barcode_scanner/lib/pages/operation/reception/reception_scan_page_model.freezed.dart
mandreshope 2c003ba335 feat: Implements reception-specific scanning
Replaces the generic scanner route with a dedicated reception scanning page.

This change ensures the scanning process initiated from reception details is context-aware by passing the reception ID directly to the new `ReceptionScanPage`. This provides a more tailored and efficient workflow for reception operations.
2025-07-30 17:00:49 +03:00

158 lines
5.8 KiB
Dart

// dart format width=80
// 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 'reception_scan_page_model.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$ReceptionScanPageModelState implements DiagnosticableTreeMixin {
StockPickingRecordEntity? get reception; bool get loading;
/// Create a copy of ReceptionScanPageModelState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ReceptionScanPageModelStateCopyWith<ReceptionScanPageModelState> get copyWith => _$ReceptionScanPageModelStateCopyWithImpl<ReceptionScanPageModelState>(this as ReceptionScanPageModelState, _$identity);
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties
..add(DiagnosticsProperty('type', 'ReceptionScanPageModelState'))
..add(DiagnosticsProperty('reception', reception))..add(DiagnosticsProperty('loading', loading));
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is ReceptionScanPageModelState&&(identical(other.reception, reception) || other.reception == reception)&&(identical(other.loading, loading) || other.loading == loading));
}
@override
int get hashCode => Object.hash(runtimeType,reception,loading);
@override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'ReceptionScanPageModelState(reception: $reception, loading: $loading)';
}
}
/// @nodoc
abstract mixin class $ReceptionScanPageModelStateCopyWith<$Res> {
factory $ReceptionScanPageModelStateCopyWith(ReceptionScanPageModelState value, $Res Function(ReceptionScanPageModelState) _then) = _$ReceptionScanPageModelStateCopyWithImpl;
@useResult
$Res call({
StockPickingRecordEntity? reception, bool loading
});
}
/// @nodoc
class _$ReceptionScanPageModelStateCopyWithImpl<$Res>
implements $ReceptionScanPageModelStateCopyWith<$Res> {
_$ReceptionScanPageModelStateCopyWithImpl(this._self, this._then);
final ReceptionScanPageModelState _self;
final $Res Function(ReceptionScanPageModelState) _then;
/// Create a copy of ReceptionScanPageModelState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? reception = freezed,Object? loading = null,}) {
return _then(_self.copyWith(
reception: freezed == reception ? _self.reception : reception // ignore: cast_nullable_to_non_nullable
as StockPickingRecordEntity?,loading: null == loading ? _self.loading : loading // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
class _ReceptionScanPageModelState with DiagnosticableTreeMixin implements ReceptionScanPageModelState {
const _ReceptionScanPageModelState({this.reception, this.loading = false});
@override final StockPickingRecordEntity? reception;
@override@JsonKey() final bool loading;
/// Create a copy of ReceptionScanPageModelState
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ReceptionScanPageModelStateCopyWith<_ReceptionScanPageModelState> get copyWith => __$ReceptionScanPageModelStateCopyWithImpl<_ReceptionScanPageModelState>(this, _$identity);
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
properties
..add(DiagnosticsProperty('type', 'ReceptionScanPageModelState'))
..add(DiagnosticsProperty('reception', reception))..add(DiagnosticsProperty('loading', loading));
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _ReceptionScanPageModelState&&(identical(other.reception, reception) || other.reception == reception)&&(identical(other.loading, loading) || other.loading == loading));
}
@override
int get hashCode => Object.hash(runtimeType,reception,loading);
@override
String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) {
return 'ReceptionScanPageModelState(reception: $reception, loading: $loading)';
}
}
/// @nodoc
abstract mixin class _$ReceptionScanPageModelStateCopyWith<$Res> implements $ReceptionScanPageModelStateCopyWith<$Res> {
factory _$ReceptionScanPageModelStateCopyWith(_ReceptionScanPageModelState value, $Res Function(_ReceptionScanPageModelState) _then) = __$ReceptionScanPageModelStateCopyWithImpl;
@override @useResult
$Res call({
StockPickingRecordEntity? reception, bool loading
});
}
/// @nodoc
class __$ReceptionScanPageModelStateCopyWithImpl<$Res>
implements _$ReceptionScanPageModelStateCopyWith<$Res> {
__$ReceptionScanPageModelStateCopyWithImpl(this._self, this._then);
final _ReceptionScanPageModelState _self;
final $Res Function(_ReceptionScanPageModelState) _then;
/// Create a copy of ReceptionScanPageModelState
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? reception = freezed,Object? loading = null,}) {
return _then(_ReceptionScanPageModelState(
reception: freezed == reception ? _self.reception : reception // ignore: cast_nullable_to_non_nullable
as StockPickingRecordEntity?,loading: null == loading ? _self.loading : loading // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
// dart format on