Files
CookIT/lib/src/sharing/shared_recipe.dart
T
2026-10-28 22:55:09 +01:00

21 lines
655 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import 'dart:typed_data';
import '../bundle/bundle_codec.dart';
import '../recipes/models/recipe.dart';
/// A Recipe arriving from another cook – scanned from a Recipe Code or opened
/// from a one-Recipe Recipe Bundle – before it gets an id, a Course and
/// Photos in this collection.
class SharedRecipe {
const SharedRecipe({required this.recipe, this.courseName, this.units = const [], this.photos = const []});
final Recipe recipe;
final String? courseName;
/// The sender's own units this Recipe uses.
final List<BundleUnit> units;
/// Photo files in order (only a Recipe Bundle carries them).
final List<Uint8List> photos;
}