streamUploadMedia method

  1. @override
Future<String?> streamUploadMedia({
  1. required String id,
  2. String? tagJson,
  3. String? metaDataJson,
  4. String? title,
  5. bool includeInReport = false,
  6. bool isLibrary = false,
})
override

Implementation

@override
Future<String?> streamUploadMedia({
  required String id,
  String? tagJson,
  String? metaDataJson,
  String? title,
  bool includeInReport = false,
  bool isLibrary = false,
}) {
  try {
    return methodChannel.invokeMethod<String>('streamUploadMedia', {
      'id': id,
      'title': title,
      'tag': tagJson,
      'metaData': metaDataJson,
      'includeInReport': includeInReport,
      'isLibrary': isLibrary,
    });
  } on PlatformException catch (e) {
    throw PlatformException(
      code: 'UPLOAD_ERROR',
      message: e.message,
      details: e.toString(),
    );
  }
}