import 'package:flutter/services.dart'; class VideoChannel{ /// channel name static const _channel = const MethodChannel("Dr.cloudSolution/videoCall"); static Future openVideoCallScreen( {kApiKey, kSessionId, kToken, callDuration, warningDuration}) { var result; try { result = _channel.invokeMethod( 'openVideoCall', { "kApiKey": kApiKey, "kSessionId": kSessionId, "kToken": kToken, /* "callDuration": callDuration, "warningDuration": warningDuration,*/ "appLang": "en", }, ); } on PlatformException catch (e) { result = e.toString(); } return result; } }