getFinalDatabasePath method
Implementation
String getFinalDatabasePath(String defaultDatabasePath) {
if (connection!.databasePath == null) {
return defaultDatabasePath;
}
String seperator = '/';
if (Platform.isWindows) {
seperator = '\\';
}
if (connection!.databasePath!
.substring(connection!.databasePath!.length - 1) ==
seperator) {
return connection!.databasePath!;
}
return connection!.databasePath! + seperator;
}