Lint fixes
This commit is contained in:
parent
0120cfa0b3
commit
17a12da2da
4 changed files with 11 additions and 6 deletions
|
@ -131,7 +131,8 @@ class BonusDetails {
|
|||
|
||||
factory BonusDetails.fromJson(Map<String, dynamic> json) => BonusDetails(
|
||||
referralStats: List<ReferralStat>.from(
|
||||
json["referralStats"].map((x) => ReferralStat.fromJson(x))),
|
||||
json["referralStats"].map((x) => ReferralStat.fromJson(x)),
|
||||
),
|
||||
bonuses:
|
||||
List<Bonus>.from(json["bonuses"].map((x) => Bonus.fromJson(x))),
|
||||
refCount: json["refCount"],
|
||||
|
|
|
@ -137,7 +137,10 @@ class FavoritesService {
|
|||
}
|
||||
|
||||
Future<void> updateFavorites(
|
||||
BuildContext context, List<File> files, bool favFlag) async {
|
||||
BuildContext context,
|
||||
List<File> files,
|
||||
bool favFlag,
|
||||
) async {
|
||||
final int currentUserID = Configuration.instance.getUserID()!;
|
||||
if (files.any((f) => f.uploadedFileID == null)) {
|
||||
throw AssertionError("Can only favorite uploaded items");
|
||||
|
|
|
@ -137,7 +137,8 @@ class _ApplyCodeScreenState extends State<ApplyCodeScreen> {
|
|||
showErrorDialogForException(
|
||||
context: context,
|
||||
exception: e as Exception,
|
||||
apiErrorPrefix: "Failed to apply code");
|
||||
apiErrorPrefix: "Failed to apply code",
|
||||
);
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
|
@ -43,7 +43,7 @@ class _ReferralScreenState extends State<ReferralScreen> {
|
|||
await UserService.instance.getUserDetailsV2(memoryCount: false);
|
||||
final referralView =
|
||||
await StorageBonusService.instance.getGateway().getReferralView();
|
||||
return Tuple2(referralView, cachedUserDetails!);
|
||||
return Tuple2(referralView, cachedUserDetails);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Add table
Reference in a new issue