setToken static method

Future<void> setToken(
  1. String fcmToken
)

Implementation

static Future<void> setToken(String fcmToken) async {
  if (kIsWeb || !Platform.isIOS) throw Exception('Only for IOS');
  return _channel.invokeMethod('set_token', {'fcm_token': fcmToken});
}