upload method

  1. @override
Future upload({
  1. required String bucketName,
  2. required String objectKey,
  3. String? filePath,
  4. Uint8List? data,
})
override

Implementation

@override
Future<dynamic> upload({
  required String bucketName,
  required String objectKey,
  String? filePath,
  Uint8List? data,
}) async {
  return _methodChannel.invokeMethod(
    'upload',
    {
      "bucketName": bucketName,
      'objectKey': objectKey,
      'filePath': filePath,
      'data': data,
    },
  );
}