parseFileUrl method
Implementation
@override
Map<String, String> parseFileUrl(String fileUrl) {
Map<String, String> parseResult = {};
parseResult.addEntries(<String, String>{
"bucketId": fileUrl.substring(fileUrl.indexOf("o/") + 2, fileUrl.indexOf("%2F"))
}.entries);
parseResult.addEntries(<String, String>{
"fileId": Uri.decodeComponent(fileUrl
.substring(fileUrl.indexOf("%2F") + 3, fileUrl.indexOf("?alt"))
.replaceAll(RegExp(r"%2F", caseSensitive: false), "/"))
}.entries);
return parseResult;
}