fw_dltime 0.0.1-dev.7 copy "fw_dltime: ^0.0.1-dev.7" to clipboard
fw_dltime: ^0.0.1-dev.7 copied to clipboard

Get approximate download time given a FW revision.

fw_dltime #

Get approximate download time given a FW revision.

Getting Started #

To use this package, add fw_dltime as a dependency in your pubspec.yaml file.

Usage #

    class _MyAppState extends State<MyApp> {
      final _plugin = FwDltime(debug: true);
      late double _downloadTime;

      @override
      void initState() {
        super.initState();

        _plugin.getDownloadTime(
          fwRevision: 'CSLBL.072.202',
          callback: (double downloadTime, String? error) {
            debugPrint('=======> error: $error');
            debugPrint('=======> downloadSpeed: $downloadSpeed');

            setState(() {
                _downloadTime = downloadTime;
            });
          },
        );
      }

      @override
      void dispose() {
        _plugin.dispose();
        super.dispose();
      }

   }
3
likes
0
pub points
24%
popularity

Publisher

unverified uploader

Get approximate download time given a FW revision.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cloud_firestore, flutter, plugin_platform_interface, speed_checker_plugin

More

Packages that depend on fw_dltime