getMoviesPath method

  1. @override
Future<String?> getMoviesPath()
override

Implementation

@override
Future<String?> getMoviesPath() async {
  try {
    if (!Platform.isAndroid) throw _unsupportedPlatformException();
    return await methodChannel.invokeMethod<String>('getMoviesPath');
  } on PlatformException catch (e) {
    debugPrint('Error getting movies path: ${e.message}');
    return null;
  }
}