flutter_internet_speed_test_pro library

A Flutter plugin to test internet download and upload speed.

This package provides functionality to measure internet connection speeds including download and upload speeds. It supports both Android and iOS platforms.

Features

  • Download speed testing
  • Upload speed testing
  • Real-time progress tracking
  • Customizable test servers
  • Support for multiple speed units (Kbps, Mbps)

Usage

import 'package:flutter_internet_speed_test_pro/flutter_internet_speed_test_pro.dart';

final speedTest = FlutterInternetSpeedTest();
speedTest.startTesting(
  onCompleted: (TestResult download, TestResult upload) {
    print('Download: ${download.transferRate} ${download.unit}');
    print('Upload: ${upload.transferRate} ${upload.unit}');
  },
);

Classes

Client
Represents client information for speed testing.
FlutterInternetSpeedTest
A singleton class that provides internet speed testing functionality.
TestResult
Represents the result of a speed test operation.

Enums

CallbacksEnum
Enumeration for callback types used in speed testing.
ListenerEnum
Enumeration for listener event types.
SpeedUnit
Enumeration for speed units of measurement.
TestType
Enumeration representing the type of speed test.

Typedefs

ErrorCallback = void Function(String errorMessage, String speedTestError)
Callback function type for error handling.
ResultCallback = void Function(TestResult download, TestResult upload)
Callback function type for test completion with download and upload results.
TestProgressCallback = void Function(double percent, TestResult data)
Callback function type for test progress updates.