new project stable version

This commit is contained in:
2026-05-10 19:11:31 +03:00
commit 3616f84556
391 changed files with 23857 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import '../../domain/entities/scooter_order.dart';
enum CurrentRidesStatus { initial, loading, success, failure }
class CurrentRidesState {
final CurrentRidesStatus status;
final List<ScooterOrder> orders;
final String? errorMessage;
const CurrentRidesState({
this.status = CurrentRidesStatus.initial,
this.orders = const [],
this.errorMessage,
});
CurrentRidesState copyWith({
CurrentRidesStatus? status,
List<ScooterOrder>? orders,
String? errorMessage,
}) {
return CurrentRidesState(
status: status ?? this.status,
orders: orders ?? this.orders,
errorMessage: errorMessage ?? this.errorMessage,
);
}
}