Initial commit
This commit is contained in:
21
lib/controllers/driver_order_controller.dart
Normal file
21
lib/controllers/driver_order_controller.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class DriverOrderListController extends GetxController {
|
||||
RxString driverId = "".obs;
|
||||
RxString serviceType = "".obs;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
final args = Get.arguments;
|
||||
|
||||
if (args != null) {
|
||||
if (args['driverId'] != null) {
|
||||
driverId.value = args['driverId'];
|
||||
}
|
||||
if (args['serviceType'] != null) {
|
||||
serviceType.value = args['serviceType'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user