FruitCategory constructor Null safety
- Fruit value,
- [Iterable<
FruitCategory> ? children]
Implementation
FruitCategory(Fruit value, [Iterable<FruitCategory>? children])
: children = children?.toSet() ?? <FruitCategory>{},
super(value);
FruitCategory(Fruit value, [Iterable<FruitCategory>? children])
: children = children?.toSet() ?? <FruitCategory>{},
super(value);