PlatformX

pub package

A multi-platform lightweight tool which helps you check the platform your app is running on.

Example

AndroidWeb
androidweb

Usage

Include platformx as a dependency into your project.

There are 2 ways to use this:

  • Version 1:

    PlatformX.platform
    

    This will return a

    PlatformEnum
    

    which is the platform your app is currently running on.

  • Version 2:

    PlatformX.is[Android/IOS/Web/Windows/Linux/MacOS/Fuchsia]
    

    This will return TRUE or FALSE, depending if you are running on that specific platform.

License

MIT

Libraries

platformx