setChannel method

Future<void> setChannel(
  1. String channel
)

Sets the app installation source.

The setting takes effect only when the method is called for the first time.

Implementation

Future<void> setChannel(String channel) async {
  if (Platform.isAndroid) {
    dynamic params = {'channel': channel};
    await _channel.invokeMethod('setChannel', params);
  }
}