getChannelInfo property

Future<Map<String, String>> getChannelInfo

Get channel information of the current application

The length of the Map is 2, the first value represents the historical version number, and the second value represents the current version number

On Android, the channel configuration files are in the directories "app/src/main/assets/channel.ini" and "app/src/main/assets/default_channel.ini", and you can see these two files in the "example/android/app/src/main/assets" directory

Implementation

static Future<Map<String, String>> get getChannelInfo async {
  final Map<String, String> channelInfo =
      Map<String, String>.from(await _channel.invokeMethod('getChannelInfo'));
  return channelInfo;
}