Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
617 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
extension StringExtensions on String { | ||
bool get isNullEmptyOrWhitespace => this == null || isEmpty; | ||
extension StringExtensions on String? { | ||
bool get isNullEmptyOrWhitespace => this == null || this!.isEmpty; | ||
bool get isNotNullEmptyOrWhitespace => !isNullEmptyOrWhitespace; | ||
|
||
bool isValidLength({int minLength = 0, int maxLength = 255}) => isNotNullEmptyOrWhitespace || length > maxLength || length < minLength; | ||
bool isValidLength({int minLength = 0, int maxLength = 255}) => isNotNullEmptyOrWhitespace || this!.length > maxLength || this!.length < minLength; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 19 additions & 21 deletions
40
lib/domain/models/calculator_asc_materials/ascension_materials_summary.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,45 @@ | ||
import 'package:flutter/foundation.dart'; | ||
|
||
import '../../enums/ascension_material_summary_type.dart'; | ||
import '../../enums/material_type.dart'; | ||
|
||
class AscensionMaterialsSummary { | ||
final AscensionMaterialSummaryType type; | ||
final AscensionMaterialSummaryType? type; | ||
final List<MaterialSummary> materials; | ||
|
||
const AscensionMaterialsSummary({ | ||
@required this.type, | ||
@required this.materials, | ||
required this.type, | ||
required this.materials, | ||
}); | ||
} | ||
|
||
class MaterialSummary { | ||
final String key; | ||
final MaterialType materialType; | ||
final String fullImagePath; | ||
final String? fullImagePath; | ||
final int quantity; | ||
final bool isFromBoss; | ||
final List<int> days; | ||
|
||
const MaterialSummary.others({ | ||
@required this.key, | ||
@required this.materialType, | ||
@required this.fullImagePath, | ||
@required this.quantity, | ||
}) : isFromBoss = false, | ||
required this.key, | ||
required this.materialType, | ||
required this.fullImagePath, | ||
required this.quantity, | ||
}) : isFromBoss = false, | ||
days = const []; | ||
|
||
const MaterialSummary.fromBoss({ | ||
@required this.key, | ||
@required this.materialType, | ||
@required this.fullImagePath, | ||
@required this.quantity, | ||
}) : isFromBoss = true, | ||
required this.key, | ||
required this.materialType, | ||
required this.fullImagePath, | ||
required this.quantity, | ||
}) : isFromBoss = true, | ||
days = const []; | ||
|
||
const MaterialSummary.fromDays({ | ||
@required this.key, | ||
@required this.materialType, | ||
@required this.fullImagePath, | ||
@required this.quantity, | ||
@required this.days, | ||
required this.key, | ||
required this.materialType, | ||
required this.fullImagePath, | ||
required this.quantity, | ||
required this.days, | ||
}) : isFromBoss = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
lib/domain/models/characters/character_constellation_model.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.