getState method
Get the current tunnel state
Implementation
@override
Future<TunnelState> getState() async {
final stateValue = await _methodChannel.invokeMethod<int>('getState');
return TunnelState.fromValue(stateValue ?? 0);
}
Get the current tunnel state
@override
Future<TunnelState> getState() async {
final stateValue = await _methodChannel.invokeMethod<int>('getState');
return TunnelState.fromValue(stateValue ?? 0);
}