Answer the question
In order to leave comments, you need to log in
How to properly package in Dart?
Good afternoon, I'm slowly learning Dart. I have experience in developing in Java, so I try to do it by analogy, but something confuses me. In general, the task is to make a DAO layer. I took this as a basis: www.oracle.com/technetwork/java/dataaccessobject-1...
I got the following package structure and required classes:
db/
+ sqlite
| +- SqLiteDaoFactory
+- AbstractDaoFactory AbstractDaoFactory
has a static method that returns the requested factory implementation:
static DaoFactory getDAOFactory(StorageType type) {
switch (type) {
case StorageType.SQLITE:
return new SqliteDaoFactory();
default:
return null;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question