subscribeUploadProgress method
Implementation
Future<StreamSubscription<dynamic>> subscribeUploadProgress(
String url, String eventName, eventMethod,
{onErrorMethod}) async {
Map<String, Object> data = Map();
data["url"] = url;
await _fileModule.invokeMethod(SUBSCRIBE_UPLOAD_PROGRESS_METHOD, data);
return EventChannel(eventName)
.receiveBroadcastStream(eventName)
.listen(eventMethod, onError: onErrorMethod);
}