copyWith method

PreviewState copyWith({
  1. Result? result,
  2. bool? processing,
  3. bool? initialized,
  4. TypeScan? typeScan,
  5. TypeCamera? typeCamera,
})

Implementation

PreviewState copyWith({
  Result? result,
  bool? processing,
  bool? initialized,
  TypeScan? typeScan,
  TypeCamera? typeCamera,
}) {
  return PreviewState(
    result: result,
    processing: processing ?? this.processing,
    initialized: initialized ?? this.initialized,
    typeScan: typeScan ?? this.typeScan,
    typeCamera: typeCamera ?? this.typeCamera,
  );
}