style: Migrate to very_good_analysis

This commit is contained in:
2022-07-27 22:34:44 +02:00
parent 5a42949af4
commit 16f22dc4ff
3 changed files with 17 additions and 12 deletions

View File

@@ -1,23 +1,23 @@
import "package:plugin_platform_interface/plugin_platform_interface.dart";
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
class SrvRecord {
final String target;
final int port;
final int priority;
final int weight;
const SrvRecord(
this.target,
this.port,
this.priority,
this.weight
this.weight,
);
final String target;
final int port;
final int priority;
final int weight;
}
abstract class MoxdnsPlatform extends PlatformInterface {
static final Object _token = Object();
MoxdnsPlatform() : super(token: _token);
static final Object _token = Object();
/// Perform the SRV query for [domain]. Use DNSSEC if [dnssec] is true.
Future<List<SrvRecord>> srvQuery(String domain, bool dnssec);