checkStatus method

  1. @override
Future<Map<String, dynamic>> checkStatus(
  1. String videoId
)
override

Checks the availability status of a YouTube video

Implementation

@override
Future<Map<String, dynamic>> checkStatus(String videoId) async {
  try {
    final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
      'checkStatus',
      {'videoId': videoId},
    );
    return _convertMap(result);
  } on PlatformException catch (e) {
    throw PlatformException(
      code: e.code,
      message: e.message,
      details: e.details,
    );
  }
}