add printer checker checks

This commit is contained in:
Efril
2026-05-28 18:11:02 +07:00
parent b9fcd79962
commit 2ab20a1150
13 changed files with 128 additions and 10 deletions
+24 -1
View File
@@ -279,6 +279,7 @@ mixin _$Product {
String get businessType => throw _privateConstructorUsedError;
String get imageUrl => throw _privateConstructorUsedError;
String get printerType => throw _privateConstructorUsedError;
bool get printToChecker => throw _privateConstructorUsedError;
Map<String, dynamic> get metadata => throw _privateConstructorUsedError;
bool get isActive => throw _privateConstructorUsedError;
String get createdAt => throw _privateConstructorUsedError;
@@ -308,6 +309,7 @@ abstract class $ProductCopyWith<$Res> {
String businessType,
String imageUrl,
String printerType,
bool printToChecker,
Map<String, dynamic> metadata,
bool isActive,
String createdAt,
@@ -342,6 +344,7 @@ class _$ProductCopyWithImpl<$Res, $Val extends Product>
Object? businessType = null,
Object? imageUrl = null,
Object? printerType = null,
Object? printToChecker = null,
Object? metadata = null,
Object? isActive = null,
Object? createdAt = null,
@@ -394,6 +397,10 @@ class _$ProductCopyWithImpl<$Res, $Val extends Product>
? _value.printerType
: printerType // ignore: cast_nullable_to_non_nullable
as String,
printToChecker: null == printToChecker
? _value.printToChecker
: printToChecker // ignore: cast_nullable_to_non_nullable
as bool,
metadata: null == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
@@ -440,6 +447,7 @@ abstract class _$$ProductImplCopyWith<$Res> implements $ProductCopyWith<$Res> {
String businessType,
String imageUrl,
String printerType,
bool printToChecker,
Map<String, dynamic> metadata,
bool isActive,
String createdAt,
@@ -473,6 +481,7 @@ class __$$ProductImplCopyWithImpl<$Res>
Object? businessType = null,
Object? imageUrl = null,
Object? printerType = null,
Object? printToChecker = null,
Object? metadata = null,
Object? isActive = null,
Object? createdAt = null,
@@ -525,6 +534,10 @@ class __$$ProductImplCopyWithImpl<$Res>
? _value.printerType
: printerType // ignore: cast_nullable_to_non_nullable
as String,
printToChecker: null == printToChecker
? _value.printToChecker
: printToChecker // ignore: cast_nullable_to_non_nullable
as bool,
metadata: null == metadata
? _value._metadata
: metadata // ignore: cast_nullable_to_non_nullable
@@ -565,6 +578,7 @@ class _$ProductImpl with DiagnosticableTreeMixin implements _Product {
required this.businessType,
required this.imageUrl,
required this.printerType,
required this.printToChecker,
required final Map<String, dynamic> metadata,
required this.isActive,
required this.createdAt,
@@ -595,6 +609,8 @@ class _$ProductImpl with DiagnosticableTreeMixin implements _Product {
final String imageUrl;
@override
final String printerType;
@override
final bool printToChecker;
final Map<String, dynamic> _metadata;
@override
Map<String, dynamic> get metadata {
@@ -619,7 +635,7 @@ class _$ProductImpl with DiagnosticableTreeMixin implements _Product {
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'Product(id: $id, organizationId: $organizationId, categoryId: $categoryId, sku: $sku, name: $name, description: $description, price: $price, cost: $cost, businessType: $businessType, imageUrl: $imageUrl, printerType: $printerType, metadata: $metadata, isActive: $isActive, createdAt: $createdAt, updatedAt: $updatedAt, variants: $variants)';
return 'Product(id: $id, organizationId: $organizationId, categoryId: $categoryId, sku: $sku, name: $name, description: $description, price: $price, cost: $cost, businessType: $businessType, imageUrl: $imageUrl, printerType: $printerType, printToChecker: $printToChecker, metadata: $metadata, isActive: $isActive, createdAt: $createdAt, updatedAt: $updatedAt, variants: $variants)';
}
@override
@@ -638,6 +654,7 @@ class _$ProductImpl with DiagnosticableTreeMixin implements _Product {
..add(DiagnosticsProperty('businessType', businessType))
..add(DiagnosticsProperty('imageUrl', imageUrl))
..add(DiagnosticsProperty('printerType', printerType))
..add(DiagnosticsProperty('printToChecker', printToChecker))
..add(DiagnosticsProperty('metadata', metadata))
..add(DiagnosticsProperty('isActive', isActive))
..add(DiagnosticsProperty('createdAt', createdAt))
@@ -667,6 +684,8 @@ class _$ProductImpl with DiagnosticableTreeMixin implements _Product {
other.imageUrl == imageUrl) &&
(identical(other.printerType, printerType) ||
other.printerType == printerType) &&
(identical(other.printToChecker, printToChecker) ||
other.printToChecker == printToChecker) &&
const DeepCollectionEquality().equals(other._metadata, _metadata) &&
(identical(other.isActive, isActive) ||
other.isActive == isActive) &&
@@ -691,6 +710,7 @@ class _$ProductImpl with DiagnosticableTreeMixin implements _Product {
businessType,
imageUrl,
printerType,
printToChecker,
const DeepCollectionEquality().hash(_metadata),
isActive,
createdAt,
@@ -720,6 +740,7 @@ abstract class _Product implements Product {
required final String businessType,
required final String imageUrl,
required final String printerType,
required final bool printToChecker,
required final Map<String, dynamic> metadata,
required final bool isActive,
required final String createdAt,
@@ -750,6 +771,8 @@ abstract class _Product implements Product {
@override
String get printerType;
@override
bool get printToChecker;
@override
Map<String, dynamic> get metadata;
@override
bool get isActive;