Custom action for internet connection returns false

I am using this custom action:

import 'dart:io';
import 'dart:async';

Future<bool> checkInternetConnection() async {
  // Check internet connectionn
  try {
    final result = await InternetAddress.lookup('google.com');
    if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) {
      return true;
    }
  } catch (e) {
    return false;
  }
  return false;
}

I am using it on my PC which is connected on the internet, and I run it through FlutterFlow. The custom action returns false. Why does it return false since I am connected to the internet?!?

13 replies