upload method Null safety

Future<NIMResult<String>> upload(
  1. {required String filePath,
  2. String? mimeType,
  3. String? sceneKey}
)

Upload data to NetEase Object Storage (NOS).

Implementation

Future<NIMResult<String>> upload(
    {required String filePath, String? mimeType, String? sceneKey}) async {
  return _platform.upload(
      filePath: filePath, mimeType: mimeType, sceneKey: sceneKey);
}