initEnv method Null safety
- Size resolution
Initialize the Zego Effects environment and set the desired resolution.
Size resolution - The desired resolution, containing width and height information.
A return value of 0 indicates successful initialization, and any other value indicates failure.
Implementation
Future<int> initEnv(Size resolution) async {
return await _channel.invokeMethod('initEnv', {'width': resolution.width, 'height': resolution.height});
}