Support setting bypassDomain Update flutter version Fix android service issues Fix macos dock exit button issues Add route address setting Optimize provider view
31 lines
880 B
Dart
31 lines
880 B
Dart
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
|
|
|
|
import 'proxy_method_channel.dart';
|
|
|
|
abstract class ProxyPlatform extends PlatformInterface {
|
|
/// Constructs a ProxyPlatform.
|
|
ProxyPlatform() : super(token: _token);
|
|
|
|
static final Object _token = Object();
|
|
|
|
static ProxyPlatform _instance = MethodChannelProxy();
|
|
|
|
/// The default instance of [ProxyPlatform] to use.
|
|
///
|
|
/// Defaults to [MethodChannelProxy].
|
|
static ProxyPlatform get instance => _instance;
|
|
|
|
static set instance(ProxyPlatform instance) {
|
|
PlatformInterface.verifyToken(instance, _token);
|
|
_instance = instance;
|
|
}
|
|
|
|
Future<bool?> startProxy(int port, List<String> bypassDomain) {
|
|
throw UnimplementedError('startProxy() has not been implemented.');
|
|
}
|
|
|
|
Future<bool?> stopProxy() {
|
|
throw UnimplementedError('stopProxy() has not been implemented.');
|
|
}
|
|
}
|