ItemSchema constructor

ItemSchema({
  1. required String name,
  2. required String code,
  3. required int level,
  4. required String type,
  5. required String subtype,
  6. required String description,
  7. List<ConditionSchema> conditions = const [],
  8. List<SimpleEffectSchema> effects = const [],
  9. CraftSchema? craft,
  10. required bool tradeable,
})

Returns a new ItemSchema instance.

Implementation

ItemSchema({
  required this.name,
  required this.code,
  required this.level,
  required this.type,
  required this.subtype,
  required this.description,
  this.conditions = const [],
  this.effects = const [],
  this.craft,
  required this.tradeable,
});