grantBoost method

  1. @override
Future<void> grantBoost(
  1. String boostTag, {
  2. TRGrantBoostResponseListener? listener,
})
override

Implementation

@override
Future<void> grantBoost(String boostTag,
    {TRGrantBoostResponseListener? listener}) async {
  final callId = _newCallId();
  if (listener != null) _grantBoostCallbacks[callId] = listener;

  await methodChannel.invokeMethod<void>('grantBoost', {
    'callId': callId,
    'boostTag': boostTag,
    'hasListener': listener != null,
  });
}