GardenPlanner/lib/entities/plant_in_row.dart

18 lines
458 B
Dart
Raw Permalink Normal View History

2023-06-25 10:15:30 +02:00
import 'plant.dart';
2023-06-25 10:13:39 +02:00
class PlantInRow extends Plant {
final int position;
PlantInRow({required this.position, required Plant plant})
: super(
supType: plant.supType,
horizontalSpace: plant.horizontalSpace,
id: plant.id,
name: plant.name,
verticalSpace: plant.verticalSpace,
waterRequirement: plant.waterRequirement) {
image = plant.image;
times = plant.times;
}
}