How to install and use platform_device_id with Flutter 3.7.3

A popular Flutter package with 256 likes that support Flutter version 3.7.3 and above. Last version of the package was published on Feb 15, 2023.

Installing platform_device_id

You can either add the package directly using the flutter command line.

$ flutter pub add platform_device_id

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  platform_device_id: ^1.0.1

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using platform_device_id

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:platform_device_id/platform_device_id.dart';