dbDirectory function Null safety

Future<String> dbDirectory()

Implementation

Future<String> dbDirectory() async {
  String dbDirectory = '';
  if (!sdk.parseIsWeb &&
      (Platform.isIOS ||
          Platform.isAndroid ||
          Platform.isMacOS ||
          Platform.isLinux ||
          Platform.isWindows)) {
    dbDirectory = (await getApplicationDocumentsDirectory()).path;
  }
  return path.join('$dbDirectory/parse', 'parse.db');
}