extendDuration method

void extendDuration(
  1. String pollId
)

Implementation

void extendDuration(String pollId){
  try {
    Map<String, dynamic> pollObject = {
      'type': 'poll-extend',
      'id': int.parse(pollId),
      'extended_duration':10
    };
    // Send poll data
    EnxRtc.sendUserData(pollObject, true, []);
    print("extend Duration ${jsonEncode(pollObject)}");
  } catch (e) {

  }

}