bug fixes
This commit is contained in:
@@ -22,6 +22,7 @@ class ScooterState {
|
||||
final double balance;
|
||||
final UserCheckFlags flags;
|
||||
final ClientNotification? lastNotification;
|
||||
final int activeRidesCount;
|
||||
|
||||
ScooterState({
|
||||
this.scooters = const [],
|
||||
@@ -38,6 +39,7 @@ class ScooterState {
|
||||
this.balance = 999,
|
||||
this.flags = const UserCheckFlags(hasFine: false, hasUnpaidOrder: false, hasCard: false),
|
||||
this.lastNotification,
|
||||
this.activeRidesCount = 0,
|
||||
});
|
||||
|
||||
ScooterState copyWith({
|
||||
@@ -55,6 +57,7 @@ class ScooterState {
|
||||
double? balance,
|
||||
UserCheckFlags? flags,
|
||||
ClientNotification? lastNotification,
|
||||
int? activeRidesCount,
|
||||
}) {
|
||||
return ScooterState(
|
||||
scooters: scooters ?? this.scooters,
|
||||
@@ -71,6 +74,7 @@ class ScooterState {
|
||||
balance: balance ?? this.balance,
|
||||
flags: flags ?? this.flags,
|
||||
lastNotification: lastNotification ?? this.lastNotification,
|
||||
activeRidesCount: activeRidesCount ?? this.activeRidesCount,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user