feat(arch): make base class const

This commit is contained in:
Hugo Pointcheval 2022-11-10 22:57:51 -05:00
parent 1f24a76717
commit 4183da6259
Signed by: hugo
GPG Key ID: A9E8E9615379254F
4 changed files with 12 additions and 4 deletions

View File

@ -14,4 +14,6 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
abstract class BaseDataSource {} abstract class BaseDataSource {
const BaseDataSource();
}

View File

@ -16,4 +16,6 @@
import 'package:wyatt_architecture/src/domain/data_sources/base_data_source.dart'; import 'package:wyatt_architecture/src/domain/data_sources/base_data_source.dart';
abstract class BaseLocalDataSource extends BaseDataSource {} abstract class BaseLocalDataSource extends BaseDataSource {
const BaseLocalDataSource();
}

View File

@ -16,4 +16,6 @@
import 'package:wyatt_architecture/src/domain/data_sources/base_data_source.dart'; import 'package:wyatt_architecture/src/domain/data_sources/base_data_source.dart';
abstract class BaseRemoteDataSource extends BaseDataSource {} abstract class BaseRemoteDataSource extends BaseDataSource {
const BaseRemoteDataSource();
}

View File

@ -14,4 +14,6 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
class BaseRepository {} abstract class BaseRepository {
const BaseRepository();
}