20 lines
655 B
Dart
20 lines
655 B
Dart
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;
|
|||
|
|
}
|