fix lints
This commit is contained in:
@@ -31,14 +31,20 @@ class MoatApi {
|
||||
MoatApi(this._client);
|
||||
|
||||
Future<SettingsResponse> settings([SettingsRequest? request]) async {
|
||||
final response = await _post('settings', request ?? SettingsRequest());
|
||||
final response = await _post(
|
||||
'settings',
|
||||
request ?? const SettingsRequest(),
|
||||
);
|
||||
return SettingsResponse.fromJson(
|
||||
jsonDecode(response.body) as Map<String, dynamic>,
|
||||
);
|
||||
}
|
||||
|
||||
Future<SettingsResponse> defaults([SettingsRequest? request]) async {
|
||||
final response = await _post('defaults', request ?? SettingsRequest());
|
||||
final response = await _post(
|
||||
'defaults',
|
||||
request ?? const SettingsRequest(),
|
||||
);
|
||||
return SettingsResponse.fromJson(
|
||||
jsonDecode(response.body) as Map<String, dynamic>,
|
||||
);
|
||||
|
||||
@@ -21,7 +21,6 @@ import 'dart:io';
|
||||
|
||||
import 'package:http/io_client.dart';
|
||||
import 'package:pluggable_transports_proxy/pluggable_transports_proxy.dart';
|
||||
import 'package:pluggable_transports_proxy/src/data/models/moat.dart';
|
||||
import 'package:pluggable_transports_proxy/src/data/service/moat_api.dart';
|
||||
import 'package:socks5_proxy/socks_client.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user