uploadFileToIPFS method

  1. @override
Future<String?> uploadFileToIPFS({
  1. required String filePath,
})
override

Implementation

@override
Future<String?> uploadFileToIPFS({required String filePath}) async {
  final cid = await methodChannel.invokeMethod<String?>(
    'uploadFileToIPFS',
    filePath,
  );
  return cid;
}