shaz-tech / flutter_internet_speed_test

Internet speed test plugin to integrate it in your app wherever you want.
MIT License
12 stars 45 forks source link

Set fileSizeInBytes on startTesting to 1 MB #16

Open Kayaba-Attribution opened 6 months ago

Kayaba-Attribution commented 6 months ago

I need to set the fileSizeInBytes to 1MB, but in the FlutterInternetSpeedTest startTesting function anything under 10 MB is set to the default.

    static const _defaultFileSize = 10 * 1024 * 1024; //10 MB

    if (fileSizeInBytes < _defaultFileSize) {
      fileSizeInBytes = _defaultFileSize;
    }

Is there a way to accomplish this? I suppose this statement is required for some extra logic.