pizzaplanner/lib/entities/PizzaRecipe/RecipeSubStep.dart
broodjeaap89 3c28bd01ca moved all the pizza event page 'build' methods in the entities to seperate stateful widgets
flutter gets annoying with many nested stateful things...
2021-08-03 20:55:30 +02:00

22 lines
No EOL
430 B
Dart

import 'package:flutter/material.dart';
import 'package:hive/hive.dart';
import 'package:pizzaplanner/pages/PizzaEventPage.dart';
part 'RecipeSubStep.g.dart';
@HiveType(typeId: 3)
class RecipeSubStep extends HiveObject {
@HiveField(0)
String name;
@HiveField(1)
String description;
@HiveField(2)
DateTime? completedOn;
bool get completed => completedOn != null;
RecipeSubStep(this.name, this.description);
}