enable method
Enables the Pi-hole.
Implementation
@override
Future<PiholeStatus> enable(CancelToken cancelToken) async {
try {
final data = await _getSecure({'enable': ''}, cancelToken);
final status = PiholeStatusModel.fromJson(data);
return status.entity;
} on DioError catch (e) {
throw _onDioError(e);
}
}