uploadFile property
Implementation
Future<String> get uploadFile async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("awsKey", () => awsKey);
args.putIfAbsent("awsSecret", () => awsSecret);
args.putIfAbsent("region", () => region.toString());
args.putIfAbsent("file_path", () => filePath);
args.putIfAbsent("bucketPath", () => bucketPath);
debugPrint("AwsS3Plugin: file path is: $filePath");
final String result = await _channel.invokeMethod('uploadImageToS3', args);
return result;
}