Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
fix: Component.rarity is now nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Oct 7, 2022
1 parent 5771900 commit 3d3430a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/src/entities/warframe_items/component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ class Drop extends Equatable {
const Drop({
required this.location,
required this.type,
required this.rarity,
this.rarity,
this.chance,
this.rotation,
});

final String location, type, rarity;
final String location, type;
final String? rarity;
final String? rotation;
final double? chance;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/warframe_items/component_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DropModel extends Drop {
const DropModel({
required super.location,
required super.type,
required super.rarity,
super.rarity,
super.rotation,
super.chance,
});
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/warframe_items/component_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3d3430a

Please sign in to comment.