handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Handles method calls from Dart

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case 'getThumbnail':
      return await _getThumbnail(call.arguments);
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details: 'smart_video_thumbnail for web doesn\'t implement \'${call.method}\'',
      );
  }
}