flutter_channel 0.0.1
flutter_channel: ^0.0.1 copied to clipboard

Flutter Android iOS

get channel name.

flutter_channel #

get flavor name.

Getting Started #

This project is a starting point for a Flutter plug-in package, get flavor name for Android and/or iOS.

Use #

try {
    platformVersion = await FlutterChannel.getChannelName("channel_string");
} on PlatformException {
    platformVersion = 'Failed to get platform version.';
}