feat(divination): 重构手动起卦教程,支持三硬币交互选择
This commit is contained in:
@@ -22,6 +22,7 @@ class DivinationParams {
|
||||
required this.divinationTime,
|
||||
required this.coinBalance,
|
||||
required this.userId,
|
||||
this.allowVibration = true,
|
||||
});
|
||||
|
||||
final DivinationMethod method;
|
||||
@@ -30,6 +31,7 @@ class DivinationParams {
|
||||
final DateTime divinationTime;
|
||||
final int coinBalance;
|
||||
final String userId;
|
||||
final bool allowVibration;
|
||||
|
||||
DivinationParams copyWith({
|
||||
DivinationMethod? method,
|
||||
@@ -38,6 +40,7 @@ class DivinationParams {
|
||||
DateTime? divinationTime,
|
||||
int? coinBalance,
|
||||
String? userId,
|
||||
bool? allowVibration,
|
||||
}) {
|
||||
return DivinationParams(
|
||||
method: method ?? this.method,
|
||||
@@ -46,6 +49,7 @@ class DivinationParams {
|
||||
divinationTime: divinationTime ?? this.divinationTime,
|
||||
coinBalance: coinBalance ?? this.coinBalance,
|
||||
userId: userId ?? this.userId,
|
||||
allowVibration: allowVibration ?? this.allowVibration,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user