checkCellular method
Supported on iOS only. Runs the passive (interface available) + active (data reachable) cellular checks. Returns the raw map; the public API wraps it into CellularCheckResult.
Implementation
@override
Future<Map<String, dynamic>?> checkCellular({
String host = 'www.apple.com',
int port = 443,
double timeoutSeconds = 5.0,
}) async {
return await methodChannel.invokeMapMethod<String, dynamic>(
'checkCellular',
<String, dynamic>{
"host": host,
"port": port,
"timeoutSeconds": timeoutSeconds,
},
);
}