last minute code refactoring

This commit is contained in:
Clasherzz
2024-12-19 09:50:33 +05:30
parent c416932efd
commit 157ecf220c
6 changed files with 30 additions and 145 deletions

View File

@@ -1,6 +1,18 @@
import 'dart:io';
import 'package:collection/collection.dart';
import 'package:http/http.dart' as http;
import 'package:http/io_client.dart';
import 'package:seed/seed.dart';
http.Client createHttpClientWithNoSSL() {
var ioClient = HttpClient()
..badCertificateCallback =
(X509Certificate cert, String host, int port) => true;
return IOClient(ioClient);
}
Map<String, String>? rowsToMap(
List<NameValueModel>? kvRows, {
bool isHeader = false,