refactor: update SDK version to 3.10.0 and clean up unused variables
fix: fix some analyze issue
This commit is contained in:
@@ -25,6 +25,7 @@ class DioErrorHandler {
|
||||
}
|
||||
|
||||
//wrong captcha => "detail": "Captcha code is incorrect" - 403
|
||||
// ignore: unused_element
|
||||
void _handle403() {}
|
||||
|
||||
void _handleGeneric(DioException error) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:rasadyar_chicken/chicken.dart';
|
||||
import 'package:rasadyar_chicken/data/models/local/widely_used_local_model.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
@@ -15,7 +14,7 @@ class ChickenLocalDataSourceImp implements ChickenLocalDataSource {
|
||||
|
||||
@override
|
||||
Future<void> initWidleyUsed() async {
|
||||
List<WidelyUsedLocalItem> tmpList = [
|
||||
/* List<WidelyUsedLocalItem> tmpList = [
|
||||
WidelyUsedLocalItem(
|
||||
index: 0,
|
||||
pathId: 0,
|
||||
@@ -43,7 +42,7 @@ class ChickenLocalDataSourceImp implements ChickenLocalDataSource {
|
||||
iconPath: Assets.vec.cubeRotateSvg.path,
|
||||
path: ChickenRoutes.buysInProvinceSteward,
|
||||
),
|
||||
];
|
||||
]; */
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:rasadyar_chicken/data/models/response/captcha/captcha_response_model.dart';
|
||||
|
||||
import 'package:rasadyar_chicken/data/models/response/user_info/user_info_model.dart';
|
||||
import 'package:rasadyar_chicken/data/models/response/user_profile_model/user_profile_model.dart';
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ class ChickenRemoteDatasourceImp implements ChickenRemoteDatasource {
|
||||
required String token,
|
||||
required Map<String, dynamic> allocation,
|
||||
}) async {
|
||||
var res = await _httpClient.put(
|
||||
await _httpClient.put(
|
||||
'/steward-allocation/0/',
|
||||
headers: {'Authorization': 'Bearer $token'},
|
||||
data: allocation,
|
||||
@@ -312,7 +312,7 @@ class ChickenRemoteDatasourceImp implements ChickenRemoteDatasource {
|
||||
required String token,
|
||||
required CreateStewardFreeBar body,
|
||||
}) async {
|
||||
var res = await _httpClient.post(
|
||||
await _httpClient.post(
|
||||
'/steward_free_bar/',
|
||||
headers: {'Authorization': 'Bearer $token'},
|
||||
data: body.toJson()..removeWhere((key, value) => value==null,),
|
||||
|
||||
@@ -14,6 +14,7 @@ abstract class KillRegistrationRequest with _$KillRegistrationRequest {
|
||||
int? quantity,
|
||||
String? sendDate,
|
||||
String? chickenBreed,
|
||||
// ignore: invalid_annotation_target
|
||||
@JsonKey(name: "Index_weight") double? indexWeight,
|
||||
String? losses,
|
||||
List<dynamic>? auctionList,
|
||||
|
||||
@@ -20,6 +20,7 @@ abstract class PoultryOrder with _$PoultryOrder {
|
||||
double? amount,
|
||||
String? financialOperation,
|
||||
int? remainQuantity,
|
||||
// ignore: invalid_annotation_target
|
||||
@JsonKey(name: "Index_weight") double? indexWeight,
|
||||
Hatching? hatching,
|
||||
String? finalState,
|
||||
|
||||
Reference in New Issue
Block a user