getWidth method

  1. @override
Future<num> getWidth()
override

Get the video's frame height in pixels.
Return the video's frame height in pixels.

Implementation

@override
Future<num> getWidth() async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<num>('getUserShareWidth', params)
      .then<num>((num? value) => value ?? 0);
}